From eb53a5983cb27c7f85a39348fba00bdba6bb4948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 16 Nov 2023 16:25:34 +0100 Subject: [PATCH] Remove Django admin --- timetracker/settings.py | 6 +++--- timetracker/urls.py | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/timetracker/settings.py b/timetracker/settings.py index 2232abd..0af9c61 100644 --- a/timetracker/settings.py +++ b/timetracker/settings.py @@ -43,9 +43,9 @@ INSTALLED_APPS = [ "corsheaders", ] -# if DEBUG: -INSTALLED_APPS.append("django_extensions") -INSTALLED_APPS.append("django.contrib.admin") +if DEBUG: + INSTALLED_APPS.append("django_extensions") + INSTALLED_APPS.append("django.contrib.admin") MIDDLEWARE = [ "corsheaders.middleware.CorsMiddleware", diff --git a/timetracker/urls.py b/timetracker/urls.py index ec19e67..834ef5b 100644 --- a/timetracker/urls.py +++ b/timetracker/urls.py @@ -77,6 +77,5 @@ urlpatterns = [ path("tracker/", include("games.urls")), ] -# if settings.DEBUG: -# urlpatterns.append(path("admin/", admin.site.urls)) -urlpatterns.append(path("admin/", admin.site.urls)) +if settings.DEBUG: + urlpatterns.append(path("admin/", admin.site.urls))