Remove Django admin

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

View File

@ -40,9 +40,9 @@ INSTALLED_APPS = [
"django.contrib.staticfiles", "django.contrib.staticfiles",
] ]
# if DEBUG: if DEBUG:
INSTALLED_APPS.append("django_extensions") INSTALLED_APPS.append("django_extensions")
INSTALLED_APPS.append("django.contrib.admin") INSTALLED_APPS.append("django.contrib.admin")
MIDDLEWARE = [ MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware", "django.middleware.security.SecurityMiddleware",

View File

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