views:

35

answers:

1

hi, i'm trying to implement the socialauth module to my django project, but i get a bit confused on its relation toward the admin site.

My problem: the @login_required decorator redirects me to the admin login page instead of the accounts/login/ page to log in via openid.

  • how do i offer the possibility to the user to log in via admin or openid?

thanks

+1  A: 

the solution:

  • in settings.py, change LOGIN_URL = 'admin' to LOGIN_URL = '/accounts/login/'
  • in urls.py add (r'^accounts/', include('socialauth.urls')),
Mermoz