Browse Source

Primera prueba para integrar mas de una app en un proyecto

politica
Celestino Rey 1 year ago
parent
commit
b9fe64a178
5 changed files with 11 additions and 13 deletions
  1. +1
    -1
      ReyMotaAppsDj/reymota/manage.py
  2. +2
    -2
      ReyMotaAppsDj/reymota/reymota/asgi.py
  3. +5
    -7
      ReyMotaAppsDj/reymota/reymota/settings.py
  4. +1
    -1
      ReyMotaAppsDj/reymota/reymota/urls.py
  5. +2
    -2
      ReyMotaAppsDj/reymota/reymota/wsgi.py

+ 1
- 1
ReyMotaAppsDj/reymota/manage.py View File

@ -6,7 +6,7 @@ import sys
def main(): def main():
"""Run administrative tasks.""" """Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'finanzas.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reymota.settings')
try: try:
from django.core.management import execute_from_command_line from django.core.management import execute_from_command_line
except ImportError as exc: except ImportError as exc:


+ 2
- 2
ReyMotaAppsDj/reymota/reymota/asgi.py View File

@ -1,5 +1,5 @@
""" """
ASGI config for finanzas project.
ASGI config for reymota project.
It exposes the ASGI callable as a module-level variable named ``application``. It exposes the ASGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.asgi import get_asgi_application from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'finanzas.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reymota.settings')
application = get_asgi_application() application = get_asgi_application()

+ 5
- 7
ReyMotaAppsDj/reymota/reymota/settings.py View File

@ -1,5 +1,5 @@
""" """
Django settings for finanzas project.
Django settings for reymota project.
Generated by 'django-admin startproject' using Django 5.1. Generated by 'django-admin startproject' using Django 5.1.
@ -54,7 +54,7 @@ MIDDLEWARE = [
'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware',
] ]
ROOT_URLCONF = 'finanzas.urls'
ROOT_URLCONF = 'reymota.urls'
TEMPLATES = [ TEMPLATES = [
{ {
@ -69,15 +69,13 @@ TEMPLATES = [
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
], ],
'libraries': { 'libraries': {
'filtros_de_entorno': 'finanzas.templatetags.filtros_de_entorno',
'filtros_de_entorno': 'reymota.templatetags.filtros_de_entorno',
} }
}, },
}, },
] ]
print("Directorio de templates: ", TEMPLATES[0]['DIRS'])
WSGI_APPLICATION = 'finanzas.wsgi.application'
WSGI_APPLICATION = 'reymota.wsgi.application'
# Database # Database
@ -128,7 +126,7 @@ THOUSAND_SEPARATOR = '.'
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.1/howto/static-files/ # https://docs.djangoproject.com/en/5.1/howto/static-files/
STATIC_URL = 'static/'
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / "staticfiles" STATIC_ROOT = BASE_DIR / "staticfiles"
# Default primary key field type # Default primary key field type


+ 1
- 1
ReyMotaAppsDj/reymota/reymota/urls.py View File

@ -1,5 +1,5 @@
""" """
URL configuration for finanzas project.
URL configuration for reymota project.
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.1/topics/http/urls/ https://docs.djangoproject.com/en/5.1/topics/http/urls/


+ 2
- 2
ReyMotaAppsDj/reymota/reymota/wsgi.py View File

@ -1,5 +1,5 @@
""" """
WSGI config for finanzas project.
WSGI config for reymota project.
It exposes the WSGI callable as a module-level variable named ``application``. It exposes the WSGI callable as a module-level variable named ``application``.
@ -11,6 +11,6 @@ import os
from django.core.wsgi import get_wsgi_application from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'finanzas.settings')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reymota.settings')
application = get_wsgi_application() application = get_wsgi_application()

Loading…
Cancel
Save