Skip to content

Commit

Permalink
Add admindocs
Browse files Browse the repository at this point in the history
  • Loading branch information
aclark4life committed May 11, 2024
1 parent 7ae73c1 commit 340fb84
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,14 @@ from dj_rest_auth.registration.views import RegisterView

from siteuser.models import User

urlpatterns = [
urlpatterns = []

if settings.DEBUG:
urlpatterns += [
path("django/doc/", include("django.contrib.admindocs.urls")),
]

urlpatterns += [
path('accounts/', include('allauth.urls')),
path('django/', admin.site.urls),
path('wagtail/', include(wagtailadmin_urls)),
Expand All @@ -836,7 +843,6 @@ if settings.DEBUG:
import debug_toolbar
urlpatterns += [
path("__debug__/", include(debug_toolbar.urls)),
path("django/doc/", include("django.contrib.admindocs.urls")),
]


Expand Down

0 comments on commit 340fb84

Please sign in to comment.