· 5 years ago · Jul 11, 2020, 01:40 PM
1
2
3from os import environ
4
5from os import environ
6
7#DO NOT COMMIT THE NON-TEMPLATE CONFIG TO FILE TO VERSION CONTROL!!!!
8
9rootLocation = '/code/saaolbd/saaolweb/'
10
11def getDebug():
12
13 debugString = environ.get('IS_DEBUG')
14
15 if debugString == "True":
16
17 IS_DEBUG = True
18
19 else :
20
21 IS_DEBUG = False
22
23 return IS_DEBUG
24
25wwwConfig = {
26
27 #set value to prod or local for production or local respectivly
28
29 'serverType' : 'local',
30
31 #absolute path to staicroot folder on the machine - should be outside the
32
33 #git repo
34
35 'STATIC_ROOT' : '',
36
37 'STATIC_URL' : '/static/',
38
39 # SECURITY WARNING: keep the secret key used in production secret!
40
41 'SECRET_KEY' : '4',
42
43 #The URL where requests are redirected for login,
44
45 #especially when using the login_required() decorator.
46
47 #Doc: https://docs.djangoproject.com/en/dev/ref/settings/#login-url
48
49 #e.g: 'http://127.0.0.1:8000/people/login/'
50
51 'LOGIN_URL' : '/people/login',
52
53 'LOGS_DIR' : rootLocation + 'logs/',
54
55 'IS_DEBUG' : True,
56
57 'ALLOWED_HOSTS' : ['*'],
58
59 }