forked from inducer/relate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_settings.py.example
72 lines (57 loc) · 2.02 KB
/
local_settings.py.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/
SECRET_KEY = '<CHANGE ME TO SOME RANDOM STRING ONCE IN PRODUCTION>'
ALLOWED_HOSTS = [
"courseflow.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': 'courseflow',
# 'USER': 'courseflow',
# 'PASSWORD': '<PASSWORD>',
# 'HOST': '127.0.0.1',
# 'PORT': '5432',
# }
# }
# 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.
#
# The default below makes them sit side-by-side with your courseflow 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 = "Andreas Kloeckner <[email protected]>"
SERVER_EMAIL = ROBOT_EMAIL_FROM
ADMINS = (
("Andreas Kloeckner", "[email protected]"),
)
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" # not yet implemented
# A string containing the image ID of the docker image to be used to run
# student code. Docker should download the image on first run.
CF_DOCKER_CFRUNPY_IMAGE = "inducer/cfrunpy-i386"
CF_MAINTENANCE_MODE = False