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)
- Host: GitHub
- URL: https://github.com/yaacov/django-mro
- Owner: yaacov
- Created: 2013-02-13T15:02:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-02T08:15:13.000Z (over 11 years ago)
- Last Synced: 2025-03-17T00:17:59.470Z (7 months ago)
- Language: Python
- Size: 7.12 MB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 serverNotes 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.pyAdd an application to the project
./manage.py startapp
Localization (FIXME?)
mkdir locale
./manage.py makemessages -l he
./manage.py compilemessagesInit Data Base and migrations
./manage.py schemamigration --initial
./manage.py syncdb
./manage.py migrateUpdate Data Base and migrations
./manage.py schemamigration --auto
./manage.py migrateRunning 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)