Django-oauth-toolkit: Redirecting to accounts/login

Created on 8 May 2014  路  2Comments  路  Source: jazzband/django-oauth-toolkit

I have django 1.6, python 3.3 and when i try to do tutorial step /o/applications/ it redirects me to accounts/login/?next=/o/applications/ which is not found.

Everything is done by your django rest tutorial, but i've changed 1 string from django.conf.urls.defaults import url, patterns, include to from django.conf.urls import url, patterns, include. Cos there is no urls.defaults in 1.6 django.

So what to do?

question

Most helpful comment

looks like it's something should be added into doc.

All 2 comments

You need to add (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'myapp/login.html'}), to your urls.py file, and create the template registration/login.html. You can follow the instructions from https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.login

looks like it's something should be added into doc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bastbnl picture bastbnl  路  3Comments

jlhawn picture jlhawn  路  3Comments

hackaprende picture hackaprende  路  5Comments

EmilTemirov picture EmilTemirov  路  5Comments

ashiksl picture ashiksl  路  3Comments