Campus map ... find what you're looking for at UCF.
Ensure your environment has virtualenv and pip installed for python
-
Create virtual environment
-
cd to the new virtual environment
-
Clone repo to subdirectory (ex. git clone src)
-
Activate virtual environment
source bin/activate
-
Install requirements
pip install -r src/requirements.txt
-
Setup local settings using the local_settings.templ.py file
-
Setup apache/python.wsgi using apache/python.templ.wsgi
-
Setup templates/robots.txt using templates/robots.templ.txt
-
Sync the database
python manage.py syncdb
-
Collect static files
python manage.py collectstatic -cl
python manage.py campusdata
The campusdata
command is a custom management command that resets the campus models and imports all fixtures. Equivalent to:
python manage.py reset campus
python manage.py loaddata bikeracks
python manage.py loaddata buildings
python manage.py loaddata campuses
python manage.py loaddata ... [all fixtures in apps/campus/fixtures]
python manage.py dumpdata --indent 4 campus.building > apps/campus/fixtures/buildings.json
python manage.py dumpdata --indent 4 --natural campus.group > apps/campus/fixtures/groups.json
If there is updated campus data from the authoritative source, read data/export-import/readme.markdown
http://docs.djangoproject.com/en/dev/howto/initial-data/
Never commit directly to master. Create a branch or fork and work on the new feature. Once it is complete it will be merged back to the master branch.
If you use a branch to develop a feature, make sure to delete the old branch once it has been merged to master.