First commit

This commit is contained in:
Johan
2025-12-18 14:35:15 +01:00
commit 460c962bb6
26 changed files with 796 additions and 0 deletions

22
config/urls.py Normal file
View File

@@ -0,0 +1,22 @@
"""
URLs principales du projet
"""
from django.contrib import admin
from django.urls import path, include
from django.views.generic import TemplateView
urlpatterns = [
path('admin/', admin.site.urls),
# Page d'accueil simple
path('', TemplateView.as_view(template_name='home.html'), name='home'),
# URLs d'authentification (login, logout, etc.)
path('accounts/', include('django.contrib.auth.urls')),
# URLs de notre application 'profiles'
path('profile/', include('profiles.urls', namespace='profiles')),
# Page protégée pour la démonstration OWASP ZAP
path('protected/', TemplateView.as_view(template_name='protected.html'), name='protected'),
]