Installation:
-
python bootstrap.py
-
bin/buildout -c devel.cfg
-
create database (using system tools)
- sqlite db is created automatically after syncdb call
- postgresql using (user/name) defined in: project/settings.py
-
create database structure: bin/django syncdb bin/django migrate
-
start django application using: bin/django runserver
-
In server environment also add those lines to cron in order to send mails:
* * * * * (/home/miloweb/www/xauto.dev.milosolutions.com/bin/django send_mail >> /home/miloweb/www/xauto.dev.milosolutions.com/cron_mailer.out 2>&1) 0,20,40 * * * * (/home/miloweb/www/xauto.dev.milosolutions.com/bin/django retry_deferred >> /home/miloweb/www/xauto.dev.milosolutions.com/cron_mailer.out 2>&1)
just use correct paths.
-
Start photo streamer using: bin/django runstreamer
Also you must see readme about frontend (important) - /project/xauto-front-end-master/README.md
Explanation:
- Project uses buildout to perform installation (http://buildout.org)
- Base buildout configuration (modules/dependencies used, project's settings file name) is defined in buildout.cfg
- For specific environments there are also.: devel.cfg, test.cfg and production.cfg which extend base buildout.cfg by for example using different settings file form different environments
- In project folder there is base settings file: settings.py and settings specific for environments: development.py, test.py and production.py If buildout will be called with: bin/buildout -c test.cfg then bin/django command will use project/test.py
- bin/django command is buildot's equivalent to manage.py. This command is generated by buildout django recipe. Inside this file are located all paths used by application