Commit ae2ce86 1 parent 2eb93ee commit ae2ce86 Copy full SHA for ae2ce86
File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 15
15
16
16
env :
17
17
DATABASE_URL : mysql://dace5c60l5ctt7og:qrmu7nb4hbzjbp0z@r1bsyfx4gbowdsis.cbetxkdyhwsb.us-east-1.rds.amazonaws.com:3306/uoq6lb032iusvpqz
18
+ DJANGO_DEBUG : ' False'
18
19
19
20
jobs :
20
21
build :
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Django: 5.1.4
24
24
2 ) Install dependencies: ` pip install -r requirements.txt `
25
25
3 ) Ensure database is set up correctly (both remote and local as needed), see instructions below.
26
26
4 ) Run the app: ` python manage.py runserver `
27
+ 5 ) To enable debugging mode, export env variable: ` export DJANGO_DEBUG="True" `
27
28
5 ) Navigate to: ` localhost:8000 ` to view the app.
28
29
6 ) To create an admin account, ` python manage.py createsuperuser ` and follow instructions to provide account credentials.
29
30
Original file line number Diff line number Diff line change 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 = False # 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
You can’t perform that action at this time.
0 commit comments