production bet2

This commit is contained in:
2022-11-27 02:44:39 +00:00
parent 654394ca4d
commit af67a399af
2 changed files with 8 additions and 7 deletions

View File

@@ -12,9 +12,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-5*mm&uf5zq@t6nrs_5z8-_qtyapm^3&yz^wqqkc_a!v(!ulj-^' SECRET_KEY = 'django-insecure-5*mm&uf5zq@t6nrs_5z8-_qtyapm^3&yz^wqqkc_a!v(!ulj-^'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ['*']
# Application definition # Application definition
@@ -26,13 +26,14 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'allauth', 'allauth',
'allauth.account', 'allauth.account',
'allauth.socialaccount', 'allauth.socialaccount',
'widget_tweaks', 'widget_tweaks',
'Admin',
'Clientes', 'Clientes',
] ]
SITE_ID = 1 SITE_ID = 1
MIDDLEWARE = [ MIDDLEWARE = [
@@ -65,13 +66,13 @@ TEMPLATES = [
}, },
] ]
AUTHENTICATION_BACKENDS = [ AUTHENTICATION_BACKENDS = [
# Needed to login by username in Django admin, regardless of `allauth` # Needed to login by username in Django admin, regardless of `allauth`
'django.contrib.auth.backends.ModelBackend', 'django.contrib.auth.backends.ModelBackend',
# `allauth` specific authentication methods, such as login by e-mail # `allauth` specific authentication methods, such as login by e-mail
'allauth.account.auth_backends.AuthenticationBackend', 'allauth.account.auth_backends.AuthenticationBackend',
] ]
WSGI_APPLICATION = 'Admin.wsgi.application' WSGI_APPLICATION = 'Admin.wsgi.application'
@@ -94,7 +95,7 @@ ACCOUNT_SIGNUP_REDIRECT_URL =LOGIN_REDIRECT_URL
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
DEBUG = True
if DEBUG: if DEBUG:
DATABASES = { DATABASES = {
'default': { 'default': {

BIN
req.txt

Binary file not shown.