Repo for Django web app for index
Authors: Kalvin Wettstein, Zachary Heaton, Stephen Williams, Spencer Jackson. Group: 1-15
Steps to get set up:
-
Clone Repository
-
In postgres create a "opioid" database
-
Run the sql scripts (given separately) to populate the tables and data in the database
-
Change the password in "settings.py" for the database
-
Create a .env file with the following secrets
- AZUREDBPASSWORD
- AZUREHOST
- AZUREUSER
- ENV=Dev
- DJANGOKEY
These will be the values for your local environment to connect to your local database
-
Create a virtual environment if you want
-
Run the following (on windows replace psycopg2-binary with psycopg)
pip install django psycopg2-binary pillow requests dj-database-url django-heroku gunicorn whitenoise python-dotenv
- Run this to create a login
python manage.py createsuperuser
- Run this to start server
python manage.py runserver
- Visit the homepage to see the site locally