Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirecting to accounts/login #121

Closed
aw3s0me opened this issue May 8, 2014 · 2 comments
Closed

Redirecting to accounts/login #121

aw3s0me opened this issue May 8, 2014 · 2 comments
Labels

Comments

@aw3s0me
Copy link

aw3s0me commented May 8, 2014

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?

@masci masci added the question label May 28, 2014
@abrahammartin
Copy link

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

@masci masci closed this as completed Jan 17, 2015
@zxkane
Copy link

zxkane commented May 15, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants