|
29 | 29 | SECRET_KEY = '#f)c)#%(9gcx9d27nh_4#1aghrgo$xqgx!kqzk2-()ccwv1mc3'
|
30 | 30 |
|
31 | 31 | # SECURITY WARNING: don't run with debug turned on in production!
|
32 |
| -DEBUG = True # We are currently in dev per #16. |
| 32 | +# Set using DJANGO_DEBUG env variable, defaults to False if not set. Set to 'True' to enable. |
| 33 | +DEBUG = os.getenv('DJANGO_DEBUG', 'False') == 'True' |
33 | 34 |
|
34 | 35 | ALLOWED_HOSTS = ['tranquil-anchorage-16644-bbe77c4a9151.herokuapp.com', 'localhost']
|
35 | 36 |
|
|
91 | 92 | # https://docs.djangoproject.com/en/5.1/ref/settings/#databases
|
92 | 93 |
|
93 | 94 | # Testing with JawsDB.
|
94 |
| -DATABASES = { |
95 |
| - 'default': dj_database_url.config(conn_max_age=600) |
96 |
| -} |
97 |
| - |
98 |
| -# Custom DB config. |
99 | 95 | # DATABASES = {
|
100 |
| -# # 'default': { |
101 |
| -# # 'ENGINE': 'django.db.backends.mysql', |
102 |
| -# # 'NAME': 'heroku_4ac11fb2946b4e7', |
103 |
| -# # 'USER': 'be05ffb901b132', |
104 |
| -# # 'PASSWORD': '3d94000c', |
105 |
| -# # 'HOST': 'us-cdbr-east-03.cleardb.com', |
106 |
| -# # # 'OPTIONS': {'ssl_mode': 'DISABLED'} |
107 |
| -# # 'TEST': { |
108 |
| -# # 'MIRROR': 'default', |
109 |
| -# # }, |
110 |
| -# # }, |
111 |
| -# 'default': { |
112 |
| -# 'ENGINE': 'django.db.backends.mysql', # Or other DBs as needed. |
113 |
| -# 'NAME': '<LOCAL_DB_DATABASE_NAME>', |
114 |
| -# 'USER': '<LOCAL_DB_USER>', |
115 |
| -# 'PASSWORD': '<LOCAL_DB_PASSWORD>', |
116 |
| -# 'HOST': '127.0.0.1', |
117 |
| -# } |
| 96 | +# 'default': dj_database_url.config(conn_max_age=600) |
118 | 97 | # }
|
119 | 98 |
|
| 99 | +# Custom DB config. |
| 100 | +DATABASES = { |
| 101 | + # 'default': { |
| 102 | + # 'ENGINE': 'django.db.backends.mysql', |
| 103 | + # 'NAME': 'heroku_4ac11fb2946b4e7', |
| 104 | + # 'USER': 'be05ffb901b132', |
| 105 | + # 'PASSWORD': '3d94000c', |
| 106 | + # 'HOST': 'us-cdbr-east-03.cleardb.com', |
| 107 | + # # 'OPTIONS': {'ssl_mode': 'DISABLED'} |
| 108 | + # 'TEST': { |
| 109 | + # 'MIRROR': 'default', |
| 110 | + # }, |
| 111 | + # }, |
| 112 | + 'default': { |
| 113 | + 'ENGINE': 'django.db.backends.mysql', # Or other DBs as needed. |
| 114 | + 'NAME': 'ponder', |
| 115 | + 'USER': 'root', |
| 116 | + 'PASSWORD': 'ponderlab', |
| 117 | + 'HOST': '127.0.0.1', |
| 118 | + } |
| 119 | +} |
| 120 | + |
120 | 121 |
|
121 | 122 | # Password validation
|
122 | 123 | # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators
|
|
0 commit comments