-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split dev and prod settings and dependencies
- Loading branch information
Showing
9 changed files
with
106 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from config.settings_common import * | ||
|
||
|
||
SECRET_KEY = '^+-pjsymn4(4!hy+m%v*##92&#^9+bg%8x=oxy@po)c%m59zqk' | ||
DEBUG = True | ||
|
||
MIDDLEWARE += [ | ||
'debug_toolbar.middleware.DebugToolbarMiddleware', | ||
] | ||
|
||
INSTALLED_APPS += [ | ||
'debug_toolbar', | ||
] | ||
|
||
DATABASES['default'].update({ | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | ||
}) | ||
|
||
CORS_ORIGIN_WHITELIST = [ | ||
'http://localhost:3000' | ||
] | ||
|
||
# python -m smtpd -n -c DebuggingServer localhost:1025 | ||
EMAIL_HOST='localhost' | ||
EMAIL_PORT=1025 | ||
EMAIL_USE_SSL = False | ||
|
||
# Django Debug Toolbar | ||
|
||
INTERNAL_IPS = [ | ||
'127.0.0.1', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
from config.settings_common import * | ||
|
||
DEBUG = False | ||
|
||
assert SECRET_KEY is not None, ( | ||
'Please provide DJANGO_SECRET_KEY ' | ||
'environment variable with a value') | ||
|
||
assert EMAIL_HOST is not None, ( | ||
'Please provide DJANGO_EMAIL_HOST environment variable with a value' | ||
) | ||
assert EMAIL_HOST_USER is not None, ( | ||
'Please provide DJANGO_EMAIL_HOST_USER environment variable with a value' | ||
) | ||
assert EMAIL_HOST_PASSWORD is not None, ( | ||
'Please provide DJANGO_EMAIL_HOST_PASSWORD environment variable with a value' | ||
) | ||
assert EMAIL_PORT is not None, ( | ||
'Please provide DJANGO_EMAIL_PORT environment variable with a value' | ||
) | ||
|
||
ALLOWED_HOSTS += [ | ||
os.getenv('DJANGO_ALLOWED_HOSTS'), | ||
] | ||
|
||
DATABASES['default'].update({ | ||
'NAME': os.getenv('DJANGO_DB_NAME'), | ||
'USER': os.getenv('DJANGO_DB_USER'), | ||
'PASSWORD': os.getenv('DJANGO_DB_PASSWORD'), | ||
'HOST': os.getenv('DJANGO_DB_HOST'), | ||
'PORT': os.getenv('DJANGO_DB_PORT'), | ||
}) | ||
|
||
CORS_ORIGIN_WHITELIST = [ | ||
os.getenv('DJANGO_CORS_ORIGIN_WHITELIST') | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-r requirements.common.txt | ||
django-debug-toolbar==2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-r requirements.common.txt | ||
uwsgi==2.0.19 |