-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
+ rozdeleni settings na local, base a production
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
export DJANGO_SETTINGS_MODULE=up.production_settings | ||
export DJANGO_SETTINGS_MODULE=up.settings.production | ||
python manage.py collectstatic --noinput | ||
python manage.py migrate |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
Lokální (vývojová) konfigurace Django projektu. | ||
Rozšiřuje základní konfiguraci ze souboru base.py. | ||
""" | ||
from .base import * # lgtm [py/polluting-import] | ||
|
||
# Django konstanty | ||
ALLOWED_HOSTS = ["*"] | ||
|
||
# CSP | ||
CSPURL_LOCALHOST = ("*:3000",) | ||
|
||
CSP_STYLE_SRC = CSP_STYLE_SRC + CSPURL_LOCALHOST | ||
CSP_CONNECT_SRC = CSP_CONNECT_SRC + CSPURL_LOCALHOST + ("ws://*:3000",) | ||
CSP_SCRIPT_SRC = CSP_SCRIPT_SRC + CSPURL_LOCALHOST + ("'unsafe-eval'", "'unsafe-inline'") |