- Make sure you have Python3 and Pipenv installed, as well as a GIS-enabled database and an appropriate webserver.
- Clone this repo
- In the root of the repo, run
pipenv install
- Create a Django setting file somewhere.
/etc/
is a good place for it. You can inherit from one of the predefined configurations - see themy_settings
file for an example. - Set the env variable
DJANGO_SETTINGS_MODULE
to the name of the file, minus the .py extension. This can be done with eg a procfile. You may also need to configure PYTHONPATH if it does not contain the directory where your settings file is. - Optionally define
DATABASE_URL
and install thedj-database-url
package. - Follow the usual Django setup process
- Configure Shib to protect your login url (by default:
/api/login/
)
- In the root of the repo, run
pipenv shell
- Prep database with
python3 manage.py makemigrations; python3 manage.py migrate
- Run dev server with
python3 manage.py runserver
This is needed to access the admin site.
- In the root of the repo, run
pipenv shell
- Run
python3 manage.py createsuperuser
- Enter your RIT ID for the username (eg
sgsvcs
) - Password isn't used, so feel free to fake it!