[Answer]-Django noreversematch for class based views

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")),
)
👤lanzz

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>
👤Bruce

Leave a comment