The Microsoft OAuth mechanism requires setting some variable in the sites framework.
Run the content of this script in python3 manage.py shell
before testing anything.
To populate the database with sample data, run the population script.
To run the unit tests, run python3 manage.py test
.
Install all the required dependencies with pip3 install -r requirements.txt
.
To test locally, here is a list of command to get started:
git clone https://github.com/octeep/wad2-groupproject.git
cd wad2-groupproject/WAD2Project10A
python3 manage.py makemigrations
python3 manage.py makemigrations OnlyPics
python3 manage.py migrate
python3 manage.py shell < django_setup.py
python3 manage.py runserver
To populate the database and see some content, run the following command and start the server again:
python3 population_script.py
The site is hosted at octeep.pythonanywhere.com.