Recent changes from server PAW
This commit is contained in:
@@ -15,7 +15,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = os.getenv("adminAS_KEY")
|
SECRET_KEY = os.getenv("adminAS_KEY")
|
||||||
|
|
||||||
# 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,7 +26,7 @@ INSTALLED_APPS = [
|
|||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ INSTALLED_APPS = [
|
|||||||
'allauth.account',
|
'allauth.account',
|
||||||
'allauth.socialaccount',
|
'allauth.socialaccount',
|
||||||
'widget_tweaks',
|
'widget_tweaks',
|
||||||
|
|
||||||
'Clientes',
|
'Clientes',
|
||||||
'Sistemas',
|
'Sistemas',
|
||||||
]
|
]
|
||||||
@@ -66,7 +66,7 @@ TEMPLATES = [
|
|||||||
'django.template.context_processors.request',
|
'django.template.context_processors.request',
|
||||||
'django.contrib.auth.context_processors.auth',
|
'django.contrib.auth.context_processors.auth',
|
||||||
'django.contrib.messages.context_processors.messages',
|
'django.contrib.messages.context_processors.messages',
|
||||||
|
|
||||||
#custom context processor
|
#custom context processor
|
||||||
'Clientes.saldo_context_proc.get_saldo',
|
'Clientes.saldo_context_proc.get_saldo',
|
||||||
],
|
],
|
||||||
@@ -103,15 +103,15 @@ ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
|
|||||||
EMAIL_TIMEOUT = 10
|
EMAIL_TIMEOUT = 10
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||||
EMAIL_SUBJECT_PREFIX = 'AS Timbres'
|
EMAIL_SUBJECT_PREFIX = 'AS Timbres'
|
||||||
if DEBUG :
|
if DEBUG :
|
||||||
EMAIL_USE_TLS = True
|
EMAIL_USE_TLS = True
|
||||||
EMAIL_HOST = 'smtp.gmail.com'
|
EMAIL_HOST = 'smtp.gmail.com'
|
||||||
EMAIL_PORT = 587
|
EMAIL_PORT = 587
|
||||||
EMAIL_HOST_USER = 'aduanasoftpruebas@gmail.com'
|
EMAIL_HOST_USER = 'aduanasoftpruebas@gmail.com'
|
||||||
EMAIL_HOST_PASSWORD = os.getenv("test_pwd_email")
|
EMAIL_HOST_PASSWORD = os.getenv("test_pwd_email")
|
||||||
#EMAIL_USE_SSL=False
|
#EMAIL_USE_SSL=False
|
||||||
else:
|
else:
|
||||||
EMAIL_USE_TLS = False
|
EMAIL_USE_TLS = False
|
||||||
EMAIL_HOST = 'secure.emailsrvr.com'
|
EMAIL_HOST = 'secure.emailsrvr.com'
|
||||||
EMAIL_PORT = 465
|
EMAIL_PORT = 465
|
||||||
EMAIL_HOST_USER = 'noreply@aduanasoft.com.mx'
|
EMAIL_HOST_USER = 'noreply@aduanasoft.com.mx'
|
||||||
@@ -142,7 +142,7 @@ else:
|
|||||||
'ENGINE': 'django.db.backends.mysql',
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
'NAME': 'fjrodriguez$cfdi_as',
|
'NAME': 'fjrodriguez$cfdi_as',
|
||||||
'USER': 'fjrodriguez',
|
'USER': 'fjrodriguez',
|
||||||
'PASSWORD':os.getenv("BD_PASS"),
|
'PASSWORD':'Soluciones28@',
|
||||||
'HOST': 'fjrodriguez.mysql.pythonanywhere-services.com',
|
'HOST': 'fjrodriguez.mysql.pythonanywhere-services.com',
|
||||||
'PORT': '3306',
|
'PORT': '3306',
|
||||||
'OPTIONS': {'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"},
|
'OPTIONS': {'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"},
|
||||||
|
|||||||
Reference in New Issue
Block a user