mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
.gitignore añadido, login creado, fix página principal y limpieza de archivos innecesarios
This commit is contained in:
parent
d44b3c733e
commit
8afc33bc57
47 changed files with 158 additions and 16 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -135,3 +135,7 @@ AUTH_USER_MODEL = 'users.CustomUser'
|
|||
|
||||
MEDIA_URL = '/media/' # La URL pública (ej: tudominio.com/media/archivo.pdf)
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') # La carpeta física en tu ordenador
|
||||
|
||||
LOGIN_URL = 'login'
|
||||
LOGIN_REDIRECT_URL = 'inicio'
|
||||
LOGOUT_REDIRECT_URL = 'login'
|
||||
|
|
|
|||
|
|
@ -17,13 +17,12 @@ Including another URLconf
|
|||
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from gestion import views # Importamos las vistas de la app donde guardaste la función
|
||||
from django.contrib.auth import views as auth_views
|
||||
from gestion import views
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
|
||||
# Ruta raíz: cuando entres a la web, cargará directamente nuestro Dashboard
|
||||
path('', views.inicio, name='inicio'),
|
||||
|
||||
# Tus otras rutas de aplicaciones...
|
||||
path('', views.inicio, name='inicio'),
|
||||
path('login/', auth_views.LoginView.as_view(template_name='login.html'), name='login'),
|
||||
path('logout/', auth_views.LogoutView.as_view(next_page='login'), name='logout'),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue