I've made some project with couples apps and now I'd like to manage by admin site but when I try to open localhost:8000/admin I get error
"""
TypeError at /admin/'tuple' object is not a mappingRequest Method:
GETRequest URL: http://localhost:8000/admin/
GETRequest URL: http://localhost:8000/admin/
Django Version: 3.1.6Exception Type:
TypeErrorException Value: 'tuple' object is not a mappingException
TypeErrorException Value: 'tuple' object is not a mappingException
Location:/usr/lib/python3.9/site-packages/django/urls/resolvers.py, line 486, in _populate
Python Executable:/usr/bin/python3Python
Version: 3.9.1
"""
I can't find the problem?
My urls.py
"""
from django.contrib import admin
from django.urls import include,path
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('main.urls')),
path('raporty/', include('raporty.urls')),
path('settings/', include('settings.urls'))
]
"""
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c64b8f71-35a7-4fb9-b902-93082aab64f7n%40googlegroups.com.
No comments:
Post a Comment