/turing-machine

Team Turing Machine Prototype

Primary LanguagePython

Turing Machine

This is a Django 1.8 app using a Postgres database that can be deployed to Heroku.

Setup

Install Postgres and create a new database:

bash> psql
psql> CREATE DATABASE turingmachine_dev;

Create a local_settings.py file and configure it to connect to the Postgres database:

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": "turingmachine_dev"
    }
}

Source the virtual environment, install dependencies, and migrate the database:

bash> source venv/bin/activate
bash> pip install -r requirements.txt
bash> python manage.py migrate