#D.U.S.K.E.N
Dårlig Utrustet Studentsystem som Kommer til å Endre Norge.
You can find the documentation at dusken.readthedocs.org.
sudo apt-get install python-virtualenv python-dev postgresql libpq-dev pgadmin3
cd dusken
virtualenv --distribute venv
. venv/bin/activate
pip install -r requirements.txt
cd dusken
cp settings-sample.py settings.py
# Edit database settings (sqlite3 is easiest to setup, but postgresql is recommended. See discussion below.)
cd ..
./manage.py syncdb --all
./manage.py runserver
If Django is running under Apache and mod_wsgi you need WSGIPassAuthorization On
in your VirtualHost.
See the EDB wiki for more info.
# Reset DB
python manage.py reset_db --router=default --noinput && python manage.py syncdb --all
# Generate Fixtures for Test
python manage.py dumpdata dusken.<model> -n --indent=4 > dusken/fixtures/<model>.json
# Database Diagram Generation
sudo apt-get install graphviz libgraphviz-dev # system requirements
pip install pygraphviz django-extensions # python requirements
python manage.py graph_models -o diagramfile.png dusken auth
A similar data model might allready exist out there, somewhere.