Skip to content

Python Django project to optimize one-human scheduling. Optimal prioritization is cool.

Notifications You must be signed in to change notification settings

david-mears-2/apriori

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a priori

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.

screenshot

Use

Local installation

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.

Local database setup with sqlite3

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

Run local server

Make sure your virtual environment is activated, and you are in apriori/project, then:

python manage.py runserver

To enable the admin side of the site

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.

For further developing

Getting visibility on errors

Set DEBUG=True in settings.py.

About

Python Django project to optimize one-human scheduling. Optimal prioritization is cool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.6%
  • HTML 35.4%