TypeError at /admin/ 'set' object is not reversible and argument( ) to reverse must be a sequence

前端 未结 6 1733
囚心锁ツ
囚心锁ツ 2021-01-16 05:57

My app was working perfectly but when I tried the admin url, this error occurred.I can access every page of the website except for the admin page. My project is min

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-16 06:48

    i found solution here, and its work for me

    urlpatterns = [
         url(r'^admin/', admin.site.urls),
         url(r'^', include('main.urls')),
         url(r'^', include('signup.urls',namespace='signup')),
    ]
    

    remove "," from the last line of urlpatterns array

    urlpatterns = [
         url(r'^admin/', admin.site.urls),
         url(r'^', include('main.urls')),
         url(r'^', include('signup.urls',namespace='signup'))
    ]
    

    from http://stackoverflaw.com/question/set-project-is-not-revertable-in-_populate-line-416/

提交回复
热议问题