From 6a495f951faa8fe8cb2b2f5fcf4173304b0a24e3 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 efe833d..a326198 100644 --- a/timetracker/settings.py +++ b/timetracker/settings.py @@ -40,9 +40,9 @@ INSTALLED_APPS = [ "django.contrib.staticfiles", ] -# 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 = [ "django.middleware.security.SecurityMiddleware", diff --git a/timetracker/urls.py b/timetracker/urls.py index bcf1113..55e776b 100644 --- a/timetracker/urls.py +++ b/timetracker/urls.py @@ -23,6 +23,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))