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
0
votes
1 answer

Django allow spaces in username within UserChangeForm

Bit of a frustrating issue, there's a few similar questions but I can't seem to get any of the answers to work for me. First of all: signup/login on my site is done exclusively through django-allauth. It has a setting ACCOUNT_USERNAME_VALIDATORS…
0
votes
0 answers

How to change max_length of Django's username field

I'm using the default Django User backend. I just want to make one small change: reduce the max_length of username to 30 (I believe the default is 150). How would I achieve this? I'm using django-allauth as my user account framework and here is my…
Zorgan
  • 8,227
  • 23
  • 106
  • 207
0
votes
1 answer

Django allauth activation code during registration

I am using Django allauth for authentication to my rest api. I have the whole process working as expected (login, registration, password reset) with email confirmation ..etc. My question is when a user register the user receives an email with the…
robd
  • 11
  • 2
0
votes
1 answer

Django allauth customize email template and add some personal image

In a Django Project of Django-allath, I'm overriding the Django confirmed email template and HTML shows correctly. My question is how to add a personal image in it? I put the image into the Django app static path:static/images/imn0.png and I add the…
Deft-pawN
  • 943
  • 10
  • 12
0
votes
1 answer

Django-allauth - How to enable to use same email address for difference account

I want to enable user to login with username / password. I also want to allow user to enter email address for email verification use. Here is my settings.py ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_UNIQUE_EMAIL = False ACCOUNT_USERNAME_REQUIRED =…
user3114168
  • 325
  • 1
  • 3
  • 14
0
votes
1 answer

Django allauth got an error is_safe_url() got an unexpected keyword argument 'allowed_hosts'

I am trying to setup Django social login using allauth tutorial here. I am able to display login page, but when I try login using facebook provider in this url http://localhost/accounts/facebook/login/, I got this confusing error: TypeError at…
swdev
  • 4,997
  • 8
  • 64
  • 106
0
votes
1 answer

Django: loading alluath template with form to div loads additional things

I've one site website with simple account managing. I have a few divs to which I load some other things (other divs, django forms and stuff like that) using jQuery load() function and everything works perfectly fine. I want to use django allauth app…
kebie
  • 485
  • 5
  • 16
0
votes
1 answer

Confirmation email in Django Selenium tests

I'm trying to write simple login test for my Django application using Selenium for Python but I'm getting error that credentials are not valid. For registration I'm using allauth package which provides email confirmation mechanism. As I understand…
kebie
  • 485
  • 5
  • 16
0
votes
1 answer

django-allauth doesn't register social links

Something wrong happened to django-allauth when I deployed my site on the hosting. I didn't do anything to django-allauth. That's what I get on localhost, django-allauth on localhost and on hosting django-allauth on hosting What I have done:…
0
votes
1 answer

Django-Allauth: How to authenticate users via Chrome extension?

I'm building a Django web app with django-allauth handling user authentication. As title, how do you expose a RESTful API to authenticate users from a Chrome extension? Taking into account of both: locally stored username & password hash string…
Zilong Li
  • 889
  • 10
  • 23
0
votes
1 answer

Why I need add the `Authorization` in the request header when access the APIs?

I use the Python/Django write the backend, use Django-Rest-Framework write the APIs, I also used the rest_auth, allauth, see my settings.py: INSTALLED_APPS = [ ... 'corsheaders', 'rest_framework', 'rest_framework.authtoken', …
user7693832
  • 6,119
  • 19
  • 63
  • 114
0
votes
0 answers

How do I create a demo account in Django?

I have visited a couple of sites and they offer the option to try their site without registering, but you can login with something like someusername@somesite.com and somesiteguest. I want to implement this for my own site. Currently I am using…
IordanouGiannis
  • 4,149
  • 16
  • 65
  • 99
0
votes
2 answers

How to reference Users model to my app models and Provide a foreign key

I am using Django-Cookiecutter which uses Django-Allauth to handle all the authentication and there is one App installed called user which handles everything related to users like sign-up, sign-out etc. I am sharing the models.py file for users…
shankarj67
  • 979
  • 1
  • 9
  • 10
0
votes
1 answer

UNIQUE constraint failed: auth_profile.user_id Django Allauth

I have a create_or_update_user_profile methods to the User model, whenever a save event occurs, but I added a new method set_initial_user_names to save a url, then now it shows me an error IntegrityError at /accounts/social/signup/ UNIQUE constraint…
Kedinn Turpo
  • 95
  • 1
  • 1
  • 5
0
votes
1 answer

django-allauth include twitter email on sociallogin extra_data

I was able to look at this feature and they say in order to include the email of a user from twitter i need to set SOCIALACCOUNT_QUERY_EMAIL = True Still not working, then i did SOCIALACCOUNT_PROVIDERS = { ... 'twitter': { 'SCOPE':…
Shift 'n Tab
  • 8,808
  • 12
  • 73
  • 117