darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.31k stars 701 forks source link

When using ParentItem and ChildItem in SuitConfig class issue #756

Closed NEONKID closed 4 years ago

NEONKID commented 4 years ago

When using ParentItem and ChildItem in SuitConfig class, model = auth.user does not work

No menu is displayed on the screen

NEONKID commented 4 years ago

This is due to the wrong setting of the urls.py file.

Before Code


from django.contrib import admin
from django.urls import path, include
from django.views.generic import RedirectView

urlpatterns = [
    path('site-admin', admin.site.urls),
]

After Code


from django.contrib import admin
from django.urls import path, include
from django.views.generic import RedirectView

urlpatterns = [
    path(r'site-admin/', admin.site.urls),
]