Skip to content
local_settings.py.example 1.11 KiB
Newer Older
# See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/

Andreas Klöckner's avatar
Andreas Klöckner committed
SECRET_KEY = '<CHANGE ME>'

ALLOWED_HOSTS = [
        "courseflow.example.com",
Andreas Klöckner's avatar
Andreas Klöckner committed
        ]

# Comment this out to use a default, local SQLite database.
# (Not recommended for production use.)
Andreas Klöckner's avatar
Andreas Klöckner committed
DATABASES = {
    'default': {
        'ENGINE':'django.db.backends.postgresql_psycopg2',
        'NAME': 'courseflow',
        'USER': 'courseflow',
Andreas Klöckner's avatar
Andreas Klöckner committed
        'PASSWORD': '<PASSWORD>',
        'HOST': '127.0.0.1',
        'PORT': '5432',
    }
}

# SECURITY WARNING: don't run with debug turned on in production!
Andreas Klöckner's avatar
Andreas Klöckner committed
DEBUG = False
TEMPLATE_DEBUG = DEBUG

# Your course git repositories will be stored under this directory.
# Make sure it's writable by your web user.
GIT_ROOT = "/some/where"

EMAIL_HOST = '127.0.0.1'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 25
EMAIL_USE_TLS = False
ROBOT_EMAIL_FROM = "Andreas Kloeckner <inform@tiker.net>"

TIME_ZONE = "America/Chicago"

# Uncomment one of these to choose the default sign-in method for students
STUDENT_SIGN_IN_VIEW = "course.auth.sign_in_by_email"
#STUDENT_SIGN_IN_VIEW = "course.auth.sign_in_by_sso"