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 templates/robots.txt using templates/robots.templ.txt
-
Run an initial deployment of the project
python manage.py deploy
This command handles migration, static file collection, and initial loading of campus app fixtures if no data is available yet in the db (see "Working with the Data" below.)
Upon completing these steps, you should be able to start Django
(python manage.py runserver
) successfully.
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.