Skip to content

Commit 7753aca

Browse files
committed
Set up production settings to get SECRET_KEY from environment.
1 parent 031148d commit 7753aca

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
# NOTE: see also app/.gitignore
12
__pycache__/
23
.idea/
34
.DS_Store
4-
secrets.txt
55

66
# directories w/files from old website
77
/public/

app/alloydflanagan/settings/production.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
from .local import *
77
except ImportError:
88
pass
9+
10+
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
- ./app/yarn.lock:/app/yarn.lock:delegated
2020
environment:
2121
DATABASE_URL: postgres://wagtail:development@postgres:5432/alloydflanagan
22+
DJANGO_SETTINGS_MODULE: alloydflanagan.settings.dev
2223
ports:
2324
- "8080:8080"
2425

0 commit comments

Comments
 (0)