-
Notifications
You must be signed in to change notification settings - Fork 1
/
secure.py.example
64 lines (49 loc) · 1.5 KB
/
secure.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
'''
THIS FILE IS AN EXAMPLE ONLY!
NONE OF THE SETTINGS IN THIS FILE WILL WORK OUT OF THE BOX
RENAME THIS FILE TO secure.py
Note - the .gitignore file is setup to exclude secure.py
from git. secure.py should never be put under version control.
Keep this file in the root directory, i.e. in /mooclet-engine
'''
'''
THIS FILE IS AN EXAMPLE ONLY!
NONE OF THE SETTINGS IN THIS FILE WILL WORK OUT OF THE BOX
RENAME THIS FILE TO secure.py
Note - the .gitignore file is setup to exclude secure.py
from git. secure.py should never be put under version control.
'''
import os
os.environ.setdefault('ENV_TYPE', 'test')
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) + '/mooclet_engine/mooclet_engine'
# django secret key
# SECRET_KEY = definesomesecretkeyhere
LOCAL_DATABASE = {
'dev': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3')
}
}
LOCAL_CELERY_BROKER_URL = None
MOOCLET_URL_BASE = {
'local': 'http://localhost:8000/moocletengine/api',
'test': 'https:///example.com/moocletengine/api',
}
AWS_DATABASE = {
'test': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'dbname',
'USER': 'dbuser',
'PASSWORD': 'dbpass',
'HOST': 'xxx.us-east-1.rds.amazonaws.com',
'PORT': 5432,
}
}
ALLOWED_HOSTS = {
'test': ['example.com'],
'local': [],
}
# credentials for app-mooclet-engine IAM user
AWS_S3_ACCESS_KEY_ID = 'xxx'
AWS_SECRET_ACCESS_KEY = 'xxx'
AWS_STORAGE_BUCKET_NAME = 'my-bucket-name'