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

Variables

 BASE_DIR = Path(__file__).resolve().parent.parent
str SECRET_KEY = 'django-insecure-lq50bruj9vl$-l1#drn=*iof2z%f%nl!j05(ce#*s$e2xhixc='
bool DEBUG = True
list ALLOWED_HOSTS = ['backmobile1.onrender.com', 'localhost', '127.0.0.1']
list CORS_ALLOWED_ORIGINS
dict LOGGING
list INSTALLED_APPS
list MIDDLEWARE
bool CORS_ALLOW_CREDENTIALS = True
str ROOT_URLCONF = 'Food_ISPC.urls'
list TEMPLATES
str WSGI_APPLICATION = 'Food_ISPC.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'
str AUTH_USER_MODEL = 'appUSERS.Usuario'
dict REST_FRAMEWORK
dict SIMPLE_JWT
str DEFAULT_FILE_STORAGE = 'cloudinary_storage.storage.MediaCloudinaryStorage'
dict CLOUDINARY_STORAGE

Detailed Description

Django settings for Food_ISPC project.

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

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

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

Variable Documentation

◆ ALLOWED_HOSTS

list settings.ALLOWED_HOSTS = ['backmobile1.onrender.com', 'localhost', '127.0.0.1']

Definition at line 34 of file settings.py.

◆ AUTH_PASSWORD_VALIDATORS

list 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 155 of file settings.py.

◆ AUTH_USER_MODEL

str settings.AUTH_USER_MODEL = 'appUSERS.Usuario'

Definition at line 193 of file settings.py.

◆ BASE_DIR

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

Definition at line 22 of file settings.py.

◆ CLOUDINARY_STORAGE

dict settings.CLOUDINARY_STORAGE
Initial value:
1= {
2 'CLOUD_NAME': "djp80kwaj", # Reemplaza por tu cloud name real
3 'API_KEY': "285359299675698", # Reemplaza por tu API key real
4 'API_SECRET': "CILwUfSuiDsJ977SrrCvPQcgJz4", # Reemplaza por tu API secret real
5}

Definition at line 210 of file settings.py.

◆ CORS_ALLOW_CREDENTIALS

bool settings.CORS_ALLOW_CREDENTIALS = True

Definition at line 108 of file settings.py.

◆ CORS_ALLOWED_ORIGINS

list settings.CORS_ALLOWED_ORIGINS
Initial value:
1= [
2 "https://example.com",
3 "http://localhost:4200",
4 "https://ispcfood.netlify.app",
5 "https://moispc.github.io"
6]

Definition at line 37 of file settings.py.

◆ DATABASES

dict 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
14
15 }
16}

Definition at line 134 of file settings.py.

◆ DEBUG

bool settings.DEBUG = True

Definition at line 32 of file settings.py.

◆ DEFAULT_AUTO_FIELD

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

Definition at line 191 of file settings.py.

◆ DEFAULT_FILE_STORAGE

str settings.DEFAULT_FILE_STORAGE = 'cloudinary_storage.storage.MediaCloudinaryStorage'

Definition at line 208 of file settings.py.

◆ INSTALLED_APPS

list 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 'rest_framework',
9 'rest_framework.authtoken',
10 "corsheaders",
11 'appUSERS.apps.AppusersConfig',
12 'appFOOD.apps.AppfoodConfig',
13 'appCART.apps.AppcartConfig',
14]

Definition at line 81 of file settings.py.

◆ LANGUAGE_CODE

str settings.LANGUAGE_CODE = 'en-us'

Definition at line 174 of file settings.py.

◆ LOGGING

dict settings.LOGGING

Definition at line 45 of file settings.py.

◆ MIDDLEWARE

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

Definition at line 96 of file settings.py.

◆ REST_FRAMEWORK

dict settings.REST_FRAMEWORK
Initial value:
1= {
2 'DEFAULT_AUTHENTICATION_CLASSES': (
3 'rest_framework_simplejwt.authentication.JWTAuthentication',
4 ),
5}

Definition at line 195 of file settings.py.

◆ ROOT_URLCONF

str settings.ROOT_URLCONF = 'Food_ISPC.urls'

Definition at line 110 of file settings.py.

◆ SECRET_KEY

str settings.SECRET_KEY = 'django-insecure-lq50bruj9vl$-l1#drn=*iof2z%f%nl!j05(ce#*s$e2xhixc='

Definition at line 29 of file settings.py.

◆ SIMPLE_JWT

dict settings.SIMPLE_JWT
Initial value:
1= {
2 'USER_ID_FIELD': 'id_usuario',
3 'ACCESS_TOKEN_LIFETIME': timedelta(days=36500),
4 'REFRESH_TOKEN_LIFETIME': timedelta(days=36500),
5}

Definition at line 201 of file settings.py.

◆ STATIC_URL

str settings.STATIC_URL = 'static/'

Definition at line 186 of file settings.py.

◆ TEMPLATES

list 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 112 of file settings.py.

◆ TIME_ZONE

str settings.TIME_ZONE = 'UTC'

Definition at line 176 of file settings.py.

◆ USE_I18N

bool settings.USE_I18N = True

Definition at line 178 of file settings.py.

◆ USE_TZ

bool settings.USE_TZ = True

Definition at line 180 of file settings.py.

◆ WSGI_APPLICATION

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

Definition at line 128 of file settings.py.