probar Email Verification
This commit is contained in:
@@ -15,7 +15,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
SECRET_KEY = os.getenv("adminAS_KEY")
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
DEBUG = False
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
# Application definition
|
||||
@@ -25,12 +25,15 @@ INSTALLED_APPS = [
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
#'django.contrib.sites',
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
|
||||
'allauth',
|
||||
'allauth.account',
|
||||
'allauth.socialaccount',
|
||||
|
||||
'widget_tweaks',
|
||||
|
||||
'Clientes',
|
||||
@@ -61,11 +64,11 @@ TEMPLATES = [
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.template.context_processors.debug',
|
||||
# `allauth` needs this from django
|
||||
'django.template.context_processors.request',
|
||||
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
|
||||
# `allauth` needs this from django
|
||||
'django.template.context_processors.request',
|
||||
#custom context processor
|
||||
'Clientes.saldo_context_proc.get_saldo',
|
||||
],
|
||||
@@ -96,10 +99,10 @@ LOGIN_REDIRECT_URL = '/'
|
||||
ACCOUNT_LOGOUT_REDIRECT_URL = '/accounts/login/'
|
||||
ACCOUNT_SIGNUP_REDIRECT_URL =LOGIN_REDIRECT_URL
|
||||
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
|
||||
|
||||
#for email auth
|
||||
ACCOUNT_EMAIL_REQUIRED =True
|
||||
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
|
||||
|
||||
|
||||
EMAIL_TIMEOUT = 10
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
EMAIL_SUBJECT_PREFIX = 'AS Timbres'
|
||||
@@ -119,6 +122,7 @@ else:
|
||||
EMAIL_USE_SSL=True
|
||||
|
||||
|
||||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
|
||||
|
||||
|
||||
Reference in New Issue
Block a user