Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b309e5fa4a |
@@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||||||
SECRET_KEY = 'b8fi9=f-qj=@-#1iru34-f@a6pzfysgrf(1n_&d=ur%!1w$q*w'
|
SECRET_KEY = 'b8fi9=f-qj=@-#1iru34-f@a6pzfysgrf(1n_&d=ur%!1w$q*w'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True if os.getenv("DEBUG") == "True" else False
|
||||||
|
|
||||||
ALLOWED_HOSTS = ["localhost", "test.ducoterra.net"]
|
ALLOWED_HOSTS = ["localhost", "test.ducoterra.net"]
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ spec:
|
|||||||
- match: Host(`test.ducoterra.net`)
|
- match: Host(`test.ducoterra.net`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: test-web
|
- name: test
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -48,7 +48,7 @@ spec:
|
|||||||
- match: Host(`test.ducoterra.net`)
|
- match: Host(`test.ducoterra.net`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: test-web
|
- name: test
|
||||||
port: 80
|
port: 80
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: httpsredirect
|
- name: httpsredirect
|
||||||
@@ -5,6 +5,7 @@ import sys
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
os.environ.setdefault('DEBUG', 'True')
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
|
||||||
try:
|
try:
|
||||||
from django.core.management import execute_from_command_line
|
from django.core.management import execute_from_command_line
|
||||||
|
|||||||
Reference in New Issue
Block a user