I've gone through the tutorial and it's (mostly) working. So the following URLs work correctly: https://example.com/rest_tutorial/snippets/ But the following URLs generate a NoReverseMatch exception: https://example.com/rest_tutorial/api-auth/login/ Here's the exception value: u'rest_framework' is not a registered namespace It displays a portion of the login_base.html template file and highlights the URL in the form tag: <form action="{% url 'rest_framework:login' %}" class=" form-inline" method="post">I've run across this kind of error before and it's usually related to the lack of a namespace int the application's urls.py file. But in this case I'm including the namespace: url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))My settings are also pretty basic: REST_FRAMEWORK = { |
urlpatterns += patterns('',
url(r'^api-auth/', include('rest_framework.urls',
namespace='rest_framework')),
)
I submitted a (small) doc pull request.
--Dan