Python Django project to optimize one-human scheduling, based on the single-machine-scheduling chapter of Algorithms to Live By: The Computer Science of Human Decisions
Optimal prioritization is cool.
git clone https://github.com/david-mears/apriori
cd apriori
python -m venv path/to/new/virtual/environment
pip install -r requirements.txt
Check that the virtual environment is using Python 3.6 or higher.
Set the environment variables by creating .env at the root directory. This project doesn't need high security so I've just pasted the needed environment variable here to allow anyone to use the project. Assign APRIORI_SECRET_KEY to this value.
Make sure your virtual environment is activated, and you are in apriori/project, then:
python manage.py migrate
This migrate command creates an empty database.
If admin site css is missing, python manage.py collectstatic
Make sure your virtual environment is activated, and you are in apriori/project, then:
python manage.py runserver
Make sure your virtual environment is activated, and you are in apriori/project, then:
python manage.py createsuperuser
Define the required details for the admin account. Anyone who can edit the source code of the website and deploy can create an admin account in this way.
Set DEBUG=True in settings.py.