Remove Django admin

This commit is contained in:
Lukáš Kucharczyk 2023-11-16 16:25:34 +01:00
parent 023736d544
commit eb53a5983c
2 changed files with 5 additions and 6 deletions

View File

@ -43,7 +43,7 @@ INSTALLED_APPS = [
"corsheaders",
]
# if DEBUG:
if DEBUG:
INSTALLED_APPS.append("django_extensions")
INSTALLED_APPS.append("django.contrib.admin")

View File

@ -77,6 +77,5 @@ urlpatterns = [
path("tracker/", include("games.urls")),
]
# if settings.DEBUG:
# urlpatterns.append(path("admin/", admin.site.urls))
if settings.DEBUG:
urlpatterns.append(path("admin/", admin.site.urls))