Fix old code

This commit is contained in:
Andros Fenollosa
2023-07-21 10:07:51 +02:00
parent 2f6a158e81
commit 516483c865
11 changed files with 14 additions and 14 deletions

View File

@ -24,14 +24,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get("DEBUG", "True") == "True"
DEBUG = os.environ.get("DEBUG", "True").lower() == "true"
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(",")
ALLOWED_HOSTS = []
# ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(",")
if not os.environ.get("ALLOWED_HOSTS") == None:
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(",")
# Application definition
@ -44,7 +39,7 @@ INSTALLED_APPS = [
"django.contrib.staticfiles",
"django_extensions",
"rest_framework",
"apps.website",
"app.public",
]
MIDDLEWARE = [

View File

@ -17,6 +17,6 @@ from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path("", include("apps.website.urls")),
path("", include("app.public.urls")),
path("admin/", admin.site.urls),
]