Skip to content

UCF/Campus-Map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e68904d · May 24, 2023
May 24, 2023
Apr 7, 2021
Oct 21, 2015
Jun 6, 2014
Jul 23, 2013
Apr 7, 2021
May 24, 2023
May 13, 2019
Dec 17, 2014
Mar 6, 2017
Apr 7, 2021
Apr 25, 2014
Aug 27, 2015
Oct 4, 2019
Aug 25, 2020
Aug 19, 2020
May 24, 2023
May 24, 2023
Aug 20, 2020
Jun 6, 2014
Aug 6, 2020

Repository files navigation

Campus map ... find what you're looking for at UCF.

Setup

Ensure your environment has virtualenv and pip installed for python

  1. Create virtual environment

  2. cd to the new virtual environment

  3. Clone repo to subdirectory (ex. git clone src)

  4. Activate virtual environment

     source bin/activate
    
  5. Install requirements

     pip install -r src/requirements.txt
    
  6. Setup local settings using the local_settings.templ.py file

  7. Setup templates/robots.txt using templates/robots.templ.txt

  8. 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.

Working with the Data

Import the data:

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]

Export data

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

helpful:

http://docs.djangoproject.com/en/dev/howto/initial-data/

Code Contribution

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.