Questions tagged [django-allauth]

django-allauth is a set of pluggable django apps for authentication, registration, account management as well as 3rd party (social) account authentication

django-allauth is a set of pluggable django apps for authentication, registration, account management as well as 3rd party (social) account authentication

1673 questions
15
votes
1 answer

Override Django allauth signup "next" redirect URL

Suppose a user is on the page /some_url/ on a site with django-allauth. When clicking "Login" they get sent to a URL like: /accounts/login/?next=/some_url/ If they are already a registered user, after logging in here, they get sent to the…
awidgery
  • 1,896
  • 1
  • 22
  • 36
15
votes
1 answer

django-allauth basic setup

I tried to follow the latest http://django-allauth.readthedocs.org/en/latest/#installation urls.py file looks like: urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^accounts/',…
newbieProgrammer
  • 227
  • 2
  • 10
14
votes
2 answers

Reverse for 'account_email_verification_sent' not found. 'account_email_verification_sent' is not a valid view function or pattern name

I'm trying to use allauth and rest-auth in my project and try to use the built-in function in allauth to do email verification but this what I get : and here is my code settings.py ACCOUNT_EMAIL_VERIFICATION = 'mandatory' ACCOUNT_EMAIL_REQUIRED =…
14
votes
2 answers

Multiple user type sign up with django-allauth

EDIT Please, do not waste your time reading the question... it is the wrong approach! Look at my own answer for a step-by-step guide (with explanation) of the right solution TL;DR How could I implement sign up for private and company users using…
mrnfrancesco
  • 1,017
  • 8
  • 26
14
votes
3 answers

django 1.9: ProgrammingError: relation "users_user" does not exist

I am running into a ProgrammingError when doing migrate, I think it may be related to the use of django-allauth with a custom user. Here is what I do 1/ Create a fresh database with psql: create database dj_example; 2/ Installed_apps contain…
Antoine Brunel
  • 1,065
  • 2
  • 14
  • 30
14
votes
3 answers

Django-allauth retrieve avatar profile pictures

I use django-rest-auth and django-allauth about user registration/login using user's Facebook profile. Now, I can take some standard information from Facebook (default for all auth). Is possible to retrieve also list of avatar-pictures? How can make…
Safari
  • 11,437
  • 24
  • 91
  • 191
14
votes
1 answer

Django Allauth Custom Login Does Not Show Errors

I am using Django Allauth for user flow in my project. I have successfully created my own set of templates which inherit from the standard Allauth templates and they work 95%. For some reason, however, I do not receive an error for an invalid…
apardes
  • 4,272
  • 7
  • 40
  • 66
13
votes
3 answers

Django allauth google OAuth redirect_uri_mismatch error

I am using Google OAuth for my Django App (via allauth package) I have followed all standard configuration steps. In Google Developer console here's what i have: Authorized JavaScript origins https://example.com Authorized redirect…
Prasanna
  • 1,617
  • 1
  • 17
  • 22
13
votes
1 answer

How can I use `django-rest-knox` with `django-rest-auth`?

I'd like to use django-rest-auth to easily make use of the registration and social auth features of django-allauth in my API. I'd also like to use django-rest-knox, as it provides a token per device, rather than per user. When creating a user via…
13
votes
4 answers

No module named 'allauth.account.context_processors'

I want to use Django-Allauth, so I installed as following and it works perfectly in my laptop localhost; but when I pull it in my server, I encounter with the following error: No module named 'allauth.account.context_processors' What should I…
Alireza Ghaffari
  • 1,004
  • 3
  • 11
  • 24
13
votes
2 answers

Django AllAuth How do you Customize your own HTML or CSS

{% extends "account/base.html" %} {% load url from future %} {% load i18n %} {% block head_title %}{% trans "Signup" %}{% endblock %} {% block content %}

Free MembershipSign up Today

{% trans "Sign Up" %}

{%…

13
votes
1 answer

How could one disable new account creation with django-allauth, but still allow existing users to sign in?

We've been running a site for a while which uses django-allauth for authentication using any of: Traditional email-based sign-up Google login Twitter login Facebook login ... but now we want to stop anyone creating a new account, while still…
Mark Longair
  • 446,582
  • 72
  • 411
  • 327
13
votes
5 answers

ImproperlyConfigured at /rest-auth/registration/account-confirm-email

I'm using django-rest-auth for user signup and verify email. I'm able to successfully send the email when a user signs up. Howvever, on email verification, I'm getting this error with the following traceback: File…
Saurabh Verma
  • 6,328
  • 12
  • 52
  • 84
13
votes
2 answers

generate jwt when signing in with allauth

How would you generate a token with django-rest-framework-jwt and pass it to a template that can store the token in localstorage, when signing in with allauth? I know django-rest-framework-jwt lets you generate tokens via POST: $ curl -X POST -d…
a_b
  • 1,828
  • 5
  • 23
  • 37
13
votes
3 answers

Django allauth not sending links with https

I want Django Allauth to send links like the confirm e-mail or reset password with https: Something like this: https://example.com/ca/accounts/confirm-email/picuwfpjpptjswi50x5zb4gtsqptmwkscea445kadnbsfwcyij3fdnblery4onuq/ According to the official…
ferrangb
  • 2,012
  • 2
  • 20
  • 34