mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Creación de index.html y primera creación de la pagina principal
This commit is contained in:
parent
fd1c6250a4
commit
8d3205bf8f
9 changed files with 129 additions and 19 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -60,10 +60,11 @@ ROOT_URLCONF = 'gades_manager.urls'
|
|||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': [BASE_DIR / 'templates'],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.template.context_processors.debug',
|
||||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
|
|
|
|||
|
|
@ -16,20 +16,14 @@ Including another URLconf
|
|||
"""
|
||||
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
# 1. IMPORTA TU VISTA NUEVA
|
||||
from gestion import views as gestion_views
|
||||
from django.urls import path, include
|
||||
from gestion import views # Importamos las vistas de la app donde guardaste la función
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
# 2. AÑADE ESTA RUTA (La cadena vacía '' significa "la página principal")
|
||||
path('', gestion_views.home, name='home'),
|
||||
]
|
||||
|
||||
# Configuración de archivos (esto déjalo como estaba)
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
# Ruta raíz: cuando entres a la web, cargará directamente nuestro Dashboard
|
||||
path('', views.inicio, name='inicio'),
|
||||
|
||||
# Tus otras rutas de aplicaciones...
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue