1👍
✅
Your main urls.py
only includes your demo.apps.home.urls
for empty URLs (as that’s what ^$
matches). You need to remove at least the final $
:
urlpatterns = patterns('',
# Examples:
url(r'^', include('demo.apps.home.urls', namespace="home")),
)
0👍
If you include url by using namespace, you have to use the namespace in the url tag (or reverse function) too:
<a href="{% url 'home:me' %}">My Profile</a>
Source:stackexchange.com