File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
{{cookiecutter.project_slug}}
{{cookiecutter.project_slug}} Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3
3
from django .utils .translation import gettext_lazy as _
4
4
from allauth .account import app_settings as allauth_settings
5
5
from allauth .account .forms import ResetPasswordForm
6
- from allauth .utils import email_address_exists , generate_unique_username
6
+ from allauth .utils import generate_unique_username
7
+ from allauth .account .utils import assess_unique_email
7
8
from allauth .account .adapter import get_adapter
8
9
from allauth .account .utils import setup_user_email
9
10
from rest_framework import serializers
@@ -38,7 +39,7 @@ def _get_request(self):
38
39
def validate_email (self , email ):
39
40
email = get_adapter ().clean_email (email )
40
41
if allauth_settings .UNIQUE_EMAIL :
41
- if email and email_address_exists (email ):
42
+ if email and assess_unique_email (email ):
42
43
raise serializers .ValidationError (
43
44
_ ("A user is already registered with this e-mail address." )
44
45
)
Original file line number Diff line number Diff line change 1
1
{% raw %}
2
- {% load staticfiles %}
2
+ {% load static %}
3
3
<!doctype html>
4
4
< html lang ="en ">
5
5
< head >
Original file line number Diff line number Diff line change 1
1
{% raw %}
2
2
{% extends '../base.html' %}
3
- {% load staticfiles %}
3
+ {% load static %}
4
4
{% load bootstrap4 %}
5
5
6
6
{% block content %}
Original file line number Diff line number Diff line change 114
114
'django.contrib.auth.middleware.AuthenticationMiddleware' ,
115
115
'django.contrib.messages.middleware.MessageMiddleware' ,
116
116
'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
117
+ 'allauth.account.middleware.AccountMiddleware' ,
117
118
]
118
119
119
120
ROOT_URLCONF = '{{cookiecutter.project_slug}}.urls'
284
285
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
285
286
286
287
287
- # GCP config
288
+ # GCP config
288
289
def google_service_account_config ():
289
290
# base64 encoded service_account.json file
290
291
service_account_config = env .str ("GS_CREDENTIALS" , "" )
You can’t perform that action at this time.
0 commit comments