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
Just change {}
to []
in project.urls.py
:
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('main.urls')),
url(r'^', include('signup.urls',namespace='signup'))
]
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/
Check the file urls.py in that file check the Square brackets in the urlpatterns = [] because its in the Curly bracket it will show the 'set' object is not reversible and argument( ) error...Try this it is working...
in signup.urls.py change the brackets from these { } to [ ] these this will work
change {} to [] in main.urls.py
I had same problem with my project, changed the curly brackets {} to box brackets [] and problem solved.