Djazz is helper library for Django framework
- via pip:
pip install git+https://github.com/akoikelov/djazz
or - download repository: https://github.com/akoikelov/djazz and run script
./install.sh
Add akoikelov.djazz
to INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
'tastypie',
'akoikelov.djazz'
]
There are several commands inside:
python manage.py gen_model [app_name] [model_name]
python manage.py gen_admin [app_name]
For backup of database and media files, there is a command:
python manage.py backup [-s] [-m] [-r]
python manage.py backup [-l]
- -s: option for saving backup
- -l: option for loading latest backup
- -m: also backup media files
- -r: Delete old backups and replace them with a new backup
We store backups at Dropbox.
Add DROPBOX_ACCESS_TOKEN
param to settings.py, containing dropbox access token