Add SECRET_KEY parsing to production.py
Prevents forgetting about this later!
This commit is contained in:
parent
fc44f550d2
commit
3eae827ed5
1 changed files with 11 additions and 0 deletions
11
config/settings/production.py
Normal file
11
config/settings/production.py
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
|
|
||||||
|
from .base import *
|
||||||
|
|
||||||
|
|
||||||
|
SECRET_KEY = os.environ.get("SECRET_KEY", None)
|
||||||
|
|
||||||
|
if not SECRET_KEY:
|
||||||
|
raise ImproperlyConfigured("Set the SECRET_KEY environment variable")
|
||||||
Loading…
Add table
Reference in a new issue