Ajout connexion/déconnexion à l'espace membres
This commit is contained in:
		
							parent
							
								
									3d1b8a9bee
								
							
						
					
					
						commit
						6c3a1e6ddc
					
				
					 9 changed files with 108 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,8 @@ Django settings for beesgospel project.
 | 
			
		|||
 | 
			
		||||
from pathlib import Path
 | 
			
		||||
 | 
			
		||||
from django.urls import reverse_lazy
 | 
			
		||||
 | 
			
		||||
# Build paths inside the project like this: BASE_DIR / "subdir".
 | 
			
		||||
BASE_DIR = Path(__file__).resolve().parent.parent
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -109,6 +111,8 @@ USE_TZ = True
 | 
			
		|||
STATIC_URL = "static/"
 | 
			
		||||
STATIC_ROOT = BASE_DIR / "static"
 | 
			
		||||
 | 
			
		||||
LOGOUT_REDIRECT_URL = reverse_lazy("presentation")
 | 
			
		||||
 | 
			
		||||
# Default primary key field type
 | 
			
		||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,11 +1,16 @@
 | 
			
		|||
from django.contrib import admin
 | 
			
		||||
from django.urls import path
 | 
			
		||||
from django.urls import include, path
 | 
			
		||||
from django.views.generic import TemplateView
 | 
			
		||||
 | 
			
		||||
from beesgospel import views
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    path("admin/", admin.site.urls),
 | 
			
		||||
    path("accounts/", include("django.contrib.auth.urls")),
 | 
			
		||||
    path("", TemplateView.as_view(template_name="index.html"), name="home"),
 | 
			
		||||
    path("v2", TemplateView.as_view(template_name="index2.html"), name="home"),
 | 
			
		||||
    path("presentation/", TemplateView.as_view(template_name="presentation.html"), name="presentation"),
 | 
			
		||||
    path("contact/", TemplateView.as_view(template_name="contact.html"), name="contact"),
 | 
			
		||||
    path("membres/", views.EspaceMembresView.as_view(), name="membres"),
 | 
			
		||||
    path("membres/liste/", views.ListeMembresView.as_view(), name="liste-membres"),
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue