allow admin in prod

This commit is contained in:
Lukáš Kucharczyk 2023-09-17 14:03:46 +02:00
parent bbb5d0bfd5
commit 65a110b37c
1 changed files with 3 additions and 0 deletions

View File

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