Remove Django admin
This commit is contained in:
parent
c8646d0a0c
commit
6a495f951f
|
@ -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",
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue