# See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/ SECRET_KEY = '' ALLOWED_HOSTS = [ "relate.example.com", ] # 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': { # 'ENGINE': 'django.db.backends.postgresql_psycopg2', # 'NAME': 'relate', # 'USER': 'relate', # 'PASSWORD': '', # 'HOST': '127.0.0.1', # 'PORT': '5432', # } # } # Recommended, because dulwich is kind of slow in retrieving stuff. # # Also, progress bars for long-running operations will only work # properly if you enable this. (or a similar out-of-process cache # backend) # # 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. # # 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 " RELATE_ADMIN_EMAIL_LOCALE = "en_US" # Cool down time (seconds) required before another new session of a flow # is allowed to be started. RELATE_SESSION_RESTART_COOLDOWN_SECONDS = 10 SERVER_EMAIL = ROBOT_EMAIL_FROM ADMINS = ( ("Example Admin", "admin@example.com"), ) TIME_ZONE = "America/Chicago" RELATE_ENABLE_SAML2 = False # If you enable this, you must also have saml_config.py in this directory. # See saml_config.py.example for help. # 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. RELATE_DOCKER_RUNPY_IMAGE = "inducer/relate-runpy-i386" # A URL pointing to the Docker command interface which RELATE should use # to spawn containers for student code. RELATE_DOCKER_URL = "unix://var/run/docker.sock" RELATE_DOCKER_TLS_CONFIG = None # Example setup for targeting remote Docker instances # with TLS authentication: # RELATE_DOCKER_URL = "https://relate.cs.illinois.edu:2375" # # import os.path # pki_base_dir = os.path.dirname(__file__) # # import docker.tls # RELATE_DOCKER_TLS_CONFIG = docker.tls.TLSConfig( # client_cert=( # os.path.join(pki_base_dir, "client-cert.pem"), # os.path.join(pki_base_dir, "client-key.pem"), # ), # ca_cert=os.path.join(pki_base_dir, "ca.pem"), # verify=True) 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. # 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' RELATE_FACILITIES = { "test_center": { "ip_ranges": [ "192.168.192.0/24", ], "exams_only": False, }, } # For how many minutes is an exam ticket still usable for login after its first # use? RELATE_TICKET_MINUTES_VALID_AFTER_USE = 12*60 # vim: filetype=python