An open API service indexing awesome lists of open source software.

https://github.com/yaacov/django-mro

Django application for MRO (Maintenance, Repair, and Operations)
https://github.com/yaacov/django-mro

Last synced: 3 months ago
JSON representation

Django application for MRO (Maintenance, Repair, and Operations)

Awesome Lists containing this project

README

          

Maintenance, Repair, and Operations
===================================

A Django progect for managing Maintenance, Repair, and Operations.

Tweaks to the standard Django settings
======================================

Import the global settings

import django.conf.global_settings as DEFAULT_SETTINGS

Get the project install path

SITE_ROOT = os.path.dirname(os.path.realpath(__file__))

FIXME: Add another gettext locale path ?

LOCALE_PATHS = (os.path.join(SITE_ROOT, '..', 'locale'),)

External helper applications

crispy_forms - help render forms
django_tables2 - help render tables
south - data base migration tools
django_wsgiserver - CherryPy wsgi web server

Notes on building a new Django project
======================================

Create a new virtual env

Install python and the virtualenv python package

Init a new virtualenv

virtualenv django-
cd django-

Activate the virtual environment

source ./bin/activate

Install required software

pip install

Create the new django project

Start a new project
django-admin.py startproject
cd
chmod ugo+x manage.py

Add an application to the project

./manage.py startapp

Localization (FIXME?)

mkdir locale
./manage.py makemessages -l he
./manage.py compilemessages

Init Data Base and migrations

./manage.py schemamigration --initial
./manage.py syncdb
./manage.py migrate

Update Data Base and migrations

./manage.py schemamigration --auto
./manage.py migrate

Running the new application

./manage.py runserver

License
=======

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Copyright (C) 2013 Yaacov Zamir
Author: Yaacov Zamir (2013)