Tesis 1.0.0
Loading...
Searching...
No Matches
mp_integration.settings Namespace Reference

Variables

 BASE_DIR = Path(__file__).resolve().parent.parent
 SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', 'django-insecure-your-secret-key-for-development')
str DEBUG = 'True'
 ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '*').split(',')
list INSTALLED_APPS
list MIDDLEWARE
str ROOT_URLCONF = 'mp_integration.urls'
list TEMPLATES
str WSGI_APPLICATION = 'mp_integration.wsgi.application'
dict DATABASES
list AUTH_PASSWORD_VALIDATORS
str LANGUAGE_CODE = 'en-us'
str TIME_ZONE = 'UTC'
bool USE_I18N = True
bool USE_TZ = True
str STATIC_URL = 'static/'
str DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
 MERCADOPAGO_ACCESS_TOKEN = os.getenv('MERCADOPAGO_ACCESS_TOKEN', 'APP_USR-1638397842548868-051022-6da127c22d6d3b0e023d8ae29f3618c2-2435347984')
 MAIN_BACKEND_URL = os.getenv('MAIN_BACKEND_URL', 'https://backmobile1.onrender.com')
bool CORS_ALLOW_ALL_ORIGINS = True
bool CORS_ALLOW_CREDENTIALS = True
list CORS_ALLOW_METHODS
list CORS_ALLOW_HEADERS

Detailed Description

Django settings for mp_integration project.

Generated by 'django-admin startproject' using Django 5.2.1.

For more information on this file, see
https://docs.djangoproject.com/en/5.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/5.2/ref/settings/

Variable Documentation

◆ ALLOWED_HOSTS

mp_integration.settings.ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '*').split(',')

Definition at line 29 of file settings.py.

◆ AUTH_PASSWORD_VALIDATORS

list mp_integration.settings.AUTH_PASSWORD_VALIDATORS
Initial value:
1= [
2 {
3 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
4 },
5 {
6 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
7 },
8 {
9 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
10 },
11 {
12 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
13 },
14]

Definition at line 91 of file settings.py.

◆ BASE_DIR

mp_integration.settings.BASE_DIR = Path(__file__).resolve().parent.parent

Definition at line 18 of file settings.py.

◆ CORS_ALLOW_ALL_ORIGINS

bool mp_integration.settings.CORS_ALLOW_ALL_ORIGINS = True

Definition at line 125 of file settings.py.

◆ CORS_ALLOW_CREDENTIALS

bool mp_integration.settings.CORS_ALLOW_CREDENTIALS = True

Definition at line 126 of file settings.py.

◆ CORS_ALLOW_HEADERS

list mp_integration.settings.CORS_ALLOW_HEADERS
Initial value:
1= [
2 'accept',
3 'accept-encoding',
4 'authorization',
5 'content-type',
6 'dnt',
7 'origin',
8 'user-agent',
9 'x-csrftoken',
10 'x-requested-with',
11]

Definition at line 135 of file settings.py.

◆ CORS_ALLOW_METHODS

list mp_integration.settings.CORS_ALLOW_METHODS
Initial value:
1= [
2 'DELETE',
3 'GET',
4 'OPTIONS',
5 'PATCH',
6 'POST',
7 'PUT',
8]

Definition at line 127 of file settings.py.

◆ DATABASES

dict mp_integration.settings.DATABASES
Initial value:
1= {
2 'default': {
3 'ENGINE': 'django.db.backends.mysql',
4 'NAME': 'railway',
5 'USER': 'root',
6 'PASSWORD': 'BGVqserZKnEpylRlbhwyQcgSmmoocqAt',
7 'HOST': 'shortline.proxy.rlwy.net',
8 'PORT': '45482',
9 'OPTIONS': {
10 'sql_mode': 'traditional',
11 }
12 }
13}

Definition at line 76 of file settings.py.

◆ DEBUG

str mp_integration.settings.DEBUG = 'True'

Definition at line 27 of file settings.py.

◆ DEFAULT_AUTO_FIELD

str mp_integration.settings.DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Definition at line 116 of file settings.py.

◆ INSTALLED_APPS

list mp_integration.settings.INSTALLED_APPS
Initial value:
1= [
2 'django.contrib.admin',
3 'django.contrib.auth',
4 'django.contrib.contenttypes',
5 'django.contrib.sessions',
6 'django.contrib.messages',
7 'django.contrib.staticfiles',
8 'corsheaders', # Agregado CORS
9 'rest_framework',
10 'payment_service',
11]

Definition at line 32 of file settings.py.

◆ LANGUAGE_CODE

str mp_integration.settings.LANGUAGE_CODE = 'en-us'

Definition at line 107 of file settings.py.

◆ MAIN_BACKEND_URL

mp_integration.settings.MAIN_BACKEND_URL = os.getenv('MAIN_BACKEND_URL', 'https://backmobile1.onrender.com')

Definition at line 122 of file settings.py.

◆ MERCADOPAGO_ACCESS_TOKEN

mp_integration.settings.MERCADOPAGO_ACCESS_TOKEN = os.getenv('MERCADOPAGO_ACCESS_TOKEN', 'APP_USR-1638397842548868-051022-6da127c22d6d3b0e023d8ae29f3618c2-2435347984')

Definition at line 119 of file settings.py.

◆ MIDDLEWARE

list mp_integration.settings.MIDDLEWARE
Initial value:
1= [
2 'django.middleware.security.SecurityMiddleware',
3 'django.contrib.sessions.middleware.SessionMiddleware',
4 'corsheaders.middleware.CorsMiddleware', # Agregado CORS middleware
5 'django.middleware.common.CommonMiddleware',
6 'django.middleware.csrf.CsrfViewMiddleware',
7 'django.contrib.auth.middleware.AuthenticationMiddleware',
8 'django.contrib.messages.middleware.MessageMiddleware',
9 'django.middleware.clickjacking.XFrameOptionsMiddleware',
10]

Definition at line 44 of file settings.py.

◆ ROOT_URLCONF

str mp_integration.settings.ROOT_URLCONF = 'mp_integration.urls'

Definition at line 55 of file settings.py.

◆ SECRET_KEY

mp_integration.settings.SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', 'django-insecure-your-secret-key-for-development')

Definition at line 24 of file settings.py.

◆ STATIC_URL

str mp_integration.settings.STATIC_URL = 'static/'

Definition at line 113 of file settings.py.

◆ TEMPLATES

list mp_integration.settings.TEMPLATES
Initial value:
1= [
2 {
3 'BACKEND': 'django.template.backends.django.DjangoTemplates',
4 'DIRS': [],
5 'APP_DIRS': True,
6 'OPTIONS': {
7 'context_processors': [
8 'django.template.context_processors.debug',
9 'django.template.context_processors.request',
10 'django.contrib.auth.context_processors.auth',
11 'django.contrib.messages.context_processors.messages',
12 ],
13 },
14 },
15]

Definition at line 57 of file settings.py.

◆ TIME_ZONE

str mp_integration.settings.TIME_ZONE = 'UTC'

Definition at line 108 of file settings.py.

◆ USE_I18N

bool mp_integration.settings.USE_I18N = True

Definition at line 109 of file settings.py.

◆ USE_TZ

bool mp_integration.settings.USE_TZ = True

Definition at line 110 of file settings.py.

◆ WSGI_APPLICATION

str mp_integration.settings.WSGI_APPLICATION = 'mp_integration.wsgi.application'

Definition at line 73 of file settings.py.