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

SECRET_KEY = '<CHANGE ME TO SOME RANDOM STRING ONCE IN PRODUCTION>'
Andreas Klöckner's avatar
Andreas Klöckner committed

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

# Uncomment this to use a real database. If left commented out, a local SQLite3
# database will be used, which is not recommended for production use.
#
# DATABASES = {
#     'default': {
Dong Zhuang's avatar
Dong Zhuang committed
#         'ENGINE': 'django.db.backends.postgresql_psycopg2',
Andreas Klöckner's avatar
Andreas Klöckner committed
#         'NAME': 'relate',
#         'USER': 'relate',
#         'PASSWORD': '<PASSWORD>',
#         'HOST': '127.0.0.1',
#         'PORT': '5432',
#     }
# }
Andreas Klöckner's avatar
Andreas Klöckner committed

Andreas Klöckner's avatar
Andreas Klöckner committed
# Recommended, because dulwich is kind of slow in retrieving stuff.
#
# CACHES = {
#   'default': {
#     'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
#     'LOCATION': '127.0.0.1:11211',
#   }
# }

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = DEBUG

# Your course git repositories will be stored under this directory.
# Make sure it's writable by your web user.
Andreas Klöckner's avatar
Andreas Klöckner committed
# The default below makes them sit side-by-side with your relate checkout,
# which makes sense for development, but you probably want to change this
# in production.
#
# The 'course identifiers' you enter will be directory names below this root.

#GIT_ROOT = "/some/where"
GIT_ROOT = ".."

EMAIL_HOST = '127.0.0.1'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 25
EMAIL_USE_TLS = False
ROBOT_EMAIL_FROM = "Example Admin <admin@example.com>"
SERVER_EMAIL = ROBOT_EMAIL_FROM

ADMINS = (
  ("Example Admin", "admin@example.com"),
TIME_ZONE = "America/Chicago"

# Uncomment one of these to choose the default sign-in method for students
STUDENT_SIGN_IN_VIEW = "relate-sign_in_by_email"
#STUDENT_SIGN_IN_VIEW = "relate-sign_in_by_user_pw"
#STUDENT_SIGN_IN_VIEW = "relate-sign_in_by_sso"  # not yet implemented

# A string containing the image ID of the docker image to be used to run
# student Python code. Docker should download the image on first run.
Andreas Klöckner's avatar
Andreas Klöckner committed
RELATE_DOCKER_RUNPY_IMAGE = "inducer/relate-runpy-i386"
Andreas Klöckner's avatar
Andreas Klöckner committed
RELATE_MAINTENANCE_MODE = False
# May be set to a string to set a sitewide announcement visible on every page.
RELATE_SITE_ANNOUNCEMENT = None

# Uncomment this to enable i18n, change 'en-us' to locale name your language.
Andreas Klöckner's avatar
Andreas Klöckner committed
# Make sure you have generated, translate and compile the message file of your
# language. If commented, RELATE will use default language 'en-us'.

#LANGUAGE_CODE='en-us'