Wednesday, March 3, 2021

Re: Problem with admin site

Show your model.py

On Wed, 3 Mar 2021, 19:41 kolo1, <dkesselring@gmail.com> wrote:
Hey
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/
Django Version: 3.1.6Exception Type:
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.

--
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/CABz7kDTw1xVqNBfyed-Zn-dRZ6aruUoDeLHWkRfd-NS0WgBVOA%40mail.gmail.com.

No comments:

Post a Comment