?: (urls.w005) Url Namespace 'main' Isn't Unique. You May Not Be Able To Reverse All Urls In This Namespace
I'm getting this error when running python manage.py runserver ?: (urls.W005) URL namespace 'main' isn't unique. You may not be able to reverse all URLs in this namespace mysit
Solution 1:
path('', include('main.urls'))
means that all of the url patterns from main
will be included without any additional prefix.
path('asdf/', include('main.urls'))
would mean that all of the url patterns from main
will be included with additional asdf/
prefix, so root index url would become asdf/
and about/
would become asdf/about/
(in your case - about/about/
).
If you'd have 100500 url patterns in main.urls you'd still need to include them only once.
Post a Comment for "?: (urls.w005) Url Namespace 'main' Isn't Unique. You May Not Be Able To Reverse All Urls In This Namespace"