File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 20
20
# RUNNING_IN_PRODUCTION=1
21
21
22
22
# Locally set this to a random string
23
- # Remotely set this with the following command:
23
+ # LOCAL_SECRET_KEY=123abc
24
+
25
+ # Production secret key
26
+ # Create value with the following command:
24
27
# python -c 'import secrets; print(secrets.token_hex())'
25
- # SECRET_KEY =<secret key>
28
+ # AZURE_SECRET_KEY =<secret key>
Original file line number Diff line number Diff line change 4
4
# SECURITY WARNING: don't run with debug turned on in production!
5
5
DEBUG = True
6
6
7
+ SECRET_KEY = os .getenv ('LOCAL_SECRET_KEY' )
8
+
7
9
# Don't use Whitenoise to avoid having to run collectstatic first.
8
10
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
9
11
Original file line number Diff line number Diff line change 7
7
DEBUG = False
8
8
DEBUG_PROPAGATE_EXCEPTIONS = True
9
9
10
+ # SECURITY WARNING: keep the secret key used in production secret!
11
+ # Use this py command to create secret
12
+ # python -c 'import secrets; print(secrets.token_hex())'
13
+ SECRET_KEY = os .getenv ('AZURE_SECRET_KEY' )
14
+
10
15
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'
11
16
12
17
# Configure database connection for Azure PostgreSQL Flexible server instance.
You can’t perform that action at this time.
0 commit comments