Ajout modèle Chant
This commit is contained in:
parent
78cb3bae07
commit
c7a08b3d3c
14 changed files with 220 additions and 11 deletions
|
|
@ -4,6 +4,7 @@ Django settings for beesgospel project.
|
|||
|
||||
from pathlib import Path
|
||||
|
||||
from django.contrib.messages import constants
|
||||
from django.urls import reverse_lazy
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / "subdir".
|
||||
|
|
@ -113,6 +114,14 @@ STATIC_ROOT = BASE_DIR / "static"
|
|||
MEDIA_URL = "media/"
|
||||
MEDIA_ROOT = BASE_DIR / "media"
|
||||
|
||||
MESSAGE_TAGS = {
|
||||
constants.DEBUG: "alert-info",
|
||||
constants.INFO: "alert-info",
|
||||
constants.SUCCESS: "alert-success",
|
||||
constants.WARNING: "alert-warning",
|
||||
constants.ERROR: "alert-danger",
|
||||
}
|
||||
|
||||
LOGOUT_REDIRECT_URL = reverse_lazy("presentation")
|
||||
|
||||
DEFAULT_FROM_EMAIL = "webmaster@2xlibre.net"
|
||||
|
|
|
|||
|
|
@ -22,5 +22,9 @@ urlpatterns = [
|
|||
path("membres/<int:pk>/edit/", views.MembreEditView.as_view(), name="membre-edit"),
|
||||
path("membres/<int:pk>/delete/", views.MembreDeleteView.as_view(), name="membre-delete"),
|
||||
path("membres/liste/", views.ListeMembresView.as_view(), name="liste-membres"),
|
||||
path("membres/chants/", views.ListeChantsView.as_view(), name="liste-chants"),
|
||||
path("membres/chants/nouveau/", views.ChantAddView.as_view(), name="chant-add"),
|
||||
path("membres/chants/<int:pk>/edit/", views.ChantEditView.as_view(), name="chant-edit"),
|
||||
path("membres/chants/<int:pk>/delete/", views.ChantDeleteView.as_view(), name="chant-delete"),
|
||||
path("membres/documents/", views.MediaView.as_view(prive=True), name="docs-membres"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue