From a206288bbefbab473a5d453fa5e7d4253b3f6aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 29 Aug 2016 05:38:10 +0200 Subject: [PATCH] Meilleures url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On n'utilise plus des chemins du type `"calendrier.views.home"` sous forme de chaîne de caratères (déprécié). --- Ernestophone/settings-example.py | 13 ++++- Ernestophone/urls.py | 34 ++++++------ .../templates/calendrier/changename.html | 2 +- calendrier/templates/calendrier/create.html | 2 +- calendrier/templates/calendrier/home.html | 4 +- calendrier/templates/calendrier/reponse.html | 4 +- calendrier/templates/calendrier/resend.html | 4 +- .../templates/calendrier/view_event.html | 4 +- calendrier/urls.py | 31 +++++------ gestion/templates/gestion/base.html | 12 ++--- gestion/templates/gestion/change.html | 6 +-- gestion/templates/gestion/changepasswd.html | 2 +- gestion/templates/gestion/divers.html | 4 +- gestion/templates/gestion/login.html | 2 +- gestion/templates/gestion/registration.html | 2 +- pads/templates/pads/create.html | 4 +- pads/templates/pads/delete.html | 2 +- pads/templates/pads/liste.html | 2 +- pads/urls.py | 13 ++--- .../templates/partitions/conf_delete.html | 4 +- .../partitions/conf_delete_morc.html | 4 +- partitions/templates/partitions/liste.html | 2 +- .../templates/partitions/liste_item.html | 4 +- .../templates/partitions/listepart.html | 12 ++--- partitions/templates/partitions/new.html | 4 +- partitions/templates/partitions/upload.html | 4 +- partitions/urls.py | 33 +++++++----- .../templates/propositions/create.html | 4 +- .../templates/propositions/delete.html | 2 +- .../templates/propositions/liste.html | 54 ++++++++++++------- propositions/urls.py | 22 ++++---- templates/admin/base_site.html | 2 +- 32 files changed, 168 insertions(+), 130 deletions(-) diff --git a/Ernestophone/settings-example.py b/Ernestophone/settings-example.py index fae7656..c979fad 100644 --- a/Ernestophone/settings-example.py +++ b/Ernestophone/settings-example.py @@ -77,9 +77,20 @@ DATABASES = { TEMPLATES = [{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ - os.path.join(BASE_DIR, 'templates/gestion/'), os.path.join(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', + 'django.template.context_processors.i18n', + 'django.template.context_processors.media', + 'django.template.context_processors.static', + ], + } }] diff --git a/Ernestophone/urls.py b/Ernestophone/urls.py index 487bd71..01abfe3 100644 --- a/Ernestophone/urls.py +++ b/Ernestophone/urls.py @@ -1,36 +1,36 @@ -from django.conf.urls import patterns, include, url +from django.conf.urls import include, url from django.contrib import admin +from django.contrib.auth import views as auth_views from django.conf.urls.static import static from django.conf import settings -urlpatterns = patterns( - '', - # Examples: - url(r'^$', 'gestion.views.home', name='home'), - # url(r'^blog/', include('blog.urls')), +from gestion import views as gestion_views - url(r'^login/?$', 'gestion.views.login', ), - url(r'^logout/?$', 'django.contrib.auth.views.logout', {'next_page': '/'}), - url(r'^registration/?$', 'gestion.views.inscription_membre'), - url(r'^change/?', 'gestion.views.change_membre'), - url(r'^password/?', 'gestion.views.change_password'), - url(r'^user/password/reset/$', 'django.contrib.auth.views.password_reset', +urlpatterns = [ + url(r'^$', gestion_views.home, name='home'), + url(r'^login/?$', gestion_views.login, name='login'), + url(r'^logout/?$', auth_views.logout, {'next_page': '/'}, name='logout'), + url(r'^registration/?$', gestion_views.inscription_membre, + name='registration'), + url(r'^change/?', gestion_views.change_membre, name='change_membre'), + url(r'^password/?', gestion_views.change_password), + url(r'^user/password/reset/$', auth_views.password_reset, {'post_reset_redirect': '/user/password/reset/done/'}, name="password_reset"), url(r'^user/password/reset/done/$', - 'django.contrib.auth.views.password_reset_done'), + auth_views.password_reset_done), url(r'^user/password/reset/(?P[0-9A-Za-z]+)-(?P.+)/$', - 'django.contrib.auth.views.password_reset_confirm', + auth_views.password_reset_confirm, {'post_reset_redirect': '/user/password/done/'}, name="password_reset_confirm"), url(r'^user/password/done/$', - 'django.contrib.auth.views.password_reset_complete'), + auth_views.password_reset_complete), url(r'^admin/', include(admin.site.urls)), url(r'^partitions/', include('partitions.urls')), url(r'^pads/', include('pads.urls')), url(r'^calendar/', include('calendrier.urls')), url(r'^propositions/', include('propositions.urls')), - url(r'^divers/', 'gestion.views.divers'), -) + url(r'^divers/', gestion_views.divers), +] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/calendrier/templates/calendrier/changename.html b/calendrier/templates/calendrier/changename.html index b988ccf..24a6da6 100644 --- a/calendrier/templates/calendrier/changename.html +++ b/calendrier/templates/calendrier/changename.html @@ -9,7 +9,7 @@ {% if success %}

Changement enregistré !

{% endif %} -
+ {% csrf_token %} {{ form.as_p }} diff --git a/calendrier/templates/calendrier/create.html b/calendrier/templates/calendrier/create.html index c915e77..f21e009 100644 --- a/calendrier/templates/calendrier/create.html +++ b/calendrier/templates/calendrier/create.html @@ -8,7 +8,7 @@ {% if erreur %} {{ erreur }} {% endif %} - + {% csrf_token %} {{ form.as_p }} diff --git a/calendrier/templates/calendrier/home.html b/calendrier/templates/calendrier/home.html index a4e5b86..3a0f089 100644 --- a/calendrier/templates/calendrier/home.html +++ b/calendrier/templates/calendrier/home.html @@ -4,7 +4,7 @@ {% load translate %} {% block extrahead %} - + {% endblock %} {% block titre %}L'Ernestophone{% endblock %} @@ -34,7 +34,7 @@ Fanfaron de passage, musicien intrigué, Ernestophoniste en quête de sensations {{Calendar|translate}} {% if user.profile.is_chef %} -Ajouter un évènement +Ajouter un évènement {% endif %} {% endblock %} diff --git a/calendrier/templates/calendrier/reponse.html b/calendrier/templates/calendrier/reponse.html index d52ecb2..77bbd99 100644 --- a/calendrier/templates/calendrier/reponse.html +++ b/calendrier/templates/calendrier/reponse.html @@ -6,10 +6,10 @@ {% if envoi %}

Votre réponse a été enregistrée !

{% endif %} -

Retour à l'événement

+

Retour à l'événement

Voulez vous participer à l'événement {{ ev.nom }}, le {{ ev.date }} à {{ ev.debut|time:"H:i" }} ?
- + {% csrf_token %} {{ form.as_p }} diff --git a/calendrier/templates/calendrier/resend.html b/calendrier/templates/calendrier/resend.html index 4453625..c6a3fb6 100644 --- a/calendrier/templates/calendrier/resend.html +++ b/calendrier/templates/calendrier/resend.html @@ -6,9 +6,9 @@ {% if erreur %} {{ erreur }} {% endif %} - + {% csrf_token %} - {{ form.as_p}} + {{ form.as_p }}
diff --git a/calendrier/templates/calendrier/view_event.html b/calendrier/templates/calendrier/view_event.html index c4bc5dc..42829bc 100644 --- a/calendrier/templates/calendrier/view_event.html +++ b/calendrier/templates/calendrier/view_event.html @@ -20,7 +20,7 @@

Supprimer l'événement

Renvoyer les mails

{% endif %} -

Changer mon nom pour le doodle

+

Changer mon nom pour le doodle

{% endif %} {% if user.is_authenticated %} @@ -51,7 +51,7 @@ Pas de réponse pour l'instant {% endfor %} -

Répondre à l'événement

+

Répondre à l'événement

{% endif %} {% endblock %} diff --git a/calendrier/urls.py b/calendrier/urls.py index 606e5ee..ac4a477 100644 --- a/calendrier/urls.py +++ b/calendrier/urls.py @@ -1,19 +1,20 @@ -from django.conf.urls import patterns, url +from django.conf.urls import url + +from calendrier import views from calendrier.views import EventUpdate, EventDelete -urlpatterns = patterns( - 'calendrier.views', - url(r'^new$', 'create_event'), - url(r'^$', 'home'), +urlpatterns = [ + url(r'^new$', views.create_event, name='calendrier-create_event'), + url(r'^$', views.home), url(r'^edition/(?P\d+)$', EventUpdate.as_view()), url(r'^supprimer/(?P\d+)$', EventDelete.as_view()), - url(r'^resend/(?P\d+)$', 'resend'), - url(r'^changename/?$', 'changename'), - url(r'(?P\d+)/reponse/?', 'reponse'), - url(r'(?P\w{6})/(?P\w{6})/oui', 'repouidir'), - url(r'(?P\w{6})/(?P\w{6})/pe', 'reppedir'), - url(r'(?P\w{6})/(?P\w{6})/non', 'repnondir'), - url(r'(?P\d+)/(?P\d+)/(?P\d+)/?', 'view_event'), - url(r'(?P\d+)/(?P\d+)/?$', 'calendar'), - url(r'(?P\d+)/?', 'view_eventbis', name='view-event'), - ) + url(r'^resend/(?P\d+)$', views.resend, name='calendrier-resend'), + url(r'^changename/?$', views.changename, name='change-doodle-name'), + url(r'(?P\d+)/reponse/?', views.reponse, name='calendrier-reponse'), + url(r'(?P\w{6})/(?P\w{6})/oui', views.repouidir), + url(r'(?P\w{6})/(?P\w{6})/pe', views.reppedir), + url(r'(?P\w{6})/(?P\w{6})/non', views.repnondir), + url(r'(?P\d+)/(?P\d+)/(?P\d+)/?', views.view_event), + url(r'(?P\d+)/(?P\d+)/?$', views.calendar), + url(r'(?P\d+)/?', views.view_eventbis, name='view-event'), +] diff --git a/gestion/templates/gestion/base.html b/gestion/templates/gestion/base.html index 2c1baa2..fd532e0 100644 --- a/gestion/templates/gestion/base.html +++ b/gestion/templates/gestion/base.html @@ -19,18 +19,18 @@ diff --git a/gestion/templates/gestion/change.html b/gestion/templates/gestion/change.html index fbda8ad..13bbb4e 100644 --- a/gestion/templates/gestion/change.html +++ b/gestion/templates/gestion/change.html @@ -9,9 +9,9 @@ {% if success %}

Changements enregistrés !

{% endif %} -

Changer mon mot de passe

-

Changer mon nom pour les doodles

-
+

Changer mon mot de passe

+

Changer mon nom pour les doodles

+ {% csrf_token %} {{ form.as_p }} diff --git a/gestion/templates/gestion/changepasswd.html b/gestion/templates/gestion/changepasswd.html index ba0bc39..806c5df 100644 --- a/gestion/templates/gestion/changepasswd.html +++ b/gestion/templates/gestion/changepasswd.html @@ -9,7 +9,7 @@ {% if success %}

Changement enregistré !

{% endif %} - + {% csrf_token %} {{ form.as_p }} diff --git a/gestion/templates/gestion/divers.html b/gestion/templates/gestion/divers.html index 0b1bac0..2539d81 100644 --- a/gestion/templates/gestion/divers.html +++ b/gestion/templates/gestion/divers.html @@ -3,7 +3,7 @@ {% block content %}

Divers

{% endblock %} diff --git a/gestion/templates/gestion/login.html b/gestion/templates/gestion/login.html index a2e8eba..241f6ac 100644 --- a/gestion/templates/gestion/login.html +++ b/gestion/templates/gestion/login.html @@ -9,7 +9,7 @@ {% if error %}

{{ error }}

{% endif %} - + {% csrf_token %} diff --git a/gestion/templates/gestion/registration.html b/gestion/templates/gestion/registration.html index 2207496..03cac76 100644 --- a/gestion/templates/gestion/registration.html +++ b/gestion/templates/gestion/registration.html @@ -7,7 +7,7 @@ {% if error %}

{{ error }}

{% endif %} - + {% csrf_token %} {{ user_form.as_p }} {{ comp_form.as_p }} diff --git a/pads/templates/pads/create.html b/pads/templates/pads/create.html index 06b5914..3af7c0d 100644 --- a/pads/templates/pads/create.html +++ b/pads/templates/pads/create.html @@ -3,9 +3,9 @@ {%block titre %}Ajout d'un pad{% endblock %} {% block content %} -

Retour à la liste

+

Retour à la liste

{% if envoi %}

Ce pad a été enregistré.{% endif %} - + {% csrf_token %} {{ form.as_p }} diff --git a/pads/templates/pads/delete.html b/pads/templates/pads/delete.html index f11fd3b..7f44cfa 100644 --- a/pads/templates/pads/delete.html +++ b/pads/templates/pads/delete.html @@ -3,7 +3,7 @@ {% block titre %}Suppression d'un pad{% endblock %} {% block content %} {% csrf_token %} -

Retour aux pads

+

Retour aux pads

Voulez vous vraiment supprimer le pad {{ object }}?

diff --git a/pads/templates/pads/liste.html b/pads/templates/pads/liste.html index ce71191..ef4fc9b 100644 --- a/pads/templates/pads/liste.html +++ b/pads/templates/pads/liste.html @@ -6,7 +6,7 @@

{{ error }}

{% endif %} {% if user.profile.is_chef %} -

Ajouter un pad

+

Ajouter un pad

{% endif %}
    {% for p in pads %} diff --git a/pads/urls.py b/pads/urls.py index e325058..f7cb987 100644 --- a/pads/urls.py +++ b/pads/urls.py @@ -1,11 +1,12 @@ -from django.conf.urls import patterns, url +from django.conf.urls import url + +from pads import views from pads.views import PadUpdate, PadDelete -urlpatterns = patterns( - 'pads.views', - url(r'^$', 'liste_pads'), - url(r'^ajouter$', 'add_pad'), +urlpatterns = [ + url(r'^$', views.liste_pads, name='pads-liste'), + url(r'^ajouter$', views.add_pad, name='pads-add'), url(r'^edition/(?P\d+)$', PadUpdate.as_view()), url(r'^supprimer/(?P\d+)$', PadDelete.as_view()), - ) +] diff --git a/partitions/templates/partitions/conf_delete.html b/partitions/templates/partitions/conf_delete.html index 5a31b2d..311eb90 100644 --- a/partitions/templates/partitions/conf_delete.html +++ b/partitions/templates/partitions/conf_delete.html @@ -2,6 +2,6 @@ {% block titre %}Confirmation de suppression{% endblock %} {% block content %}

    Confirmation de suppression

    Voulez-vous vraiment supprimer cette partition ?

    -

    Oui

    -

    Retour à la liste des partitions

    +

    Oui

    +

    Retour à la liste des partitions

    {% endblock %} diff --git a/partitions/templates/partitions/conf_delete_morc.html b/partitions/templates/partitions/conf_delete_morc.html index 0d98348..11263a2 100644 --- a/partitions/templates/partitions/conf_delete_morc.html +++ b/partitions/templates/partitions/conf_delete_morc.html @@ -2,6 +2,6 @@ {% block titre %}Confirmation de suppression{% endblock %} {% block content %}

    Confirmation de suppression

    Voulez-vous vraiment supprimer {{ nom }}-{{ auteur }} et toutes les partitions qu'il contient ?

    -

    Oui

    -

    Retour à la liste des partitions

    +

    Oui

    +

    Retour à la liste des partitions

    {% endblock %} diff --git a/partitions/templates/partitions/liste.html b/partitions/templates/partitions/liste.html index 1d19c99..88b9750 100644 --- a/partitions/templates/partitions/liste.html +++ b/partitions/templates/partitions/liste.html @@ -8,7 +8,7 @@ {% endif %} {% if user.is_authenticated %} -

    Ajouter un morceau

    +

    Ajouter un morceau

    {% endif %} diff --git a/partitions/templates/partitions/liste_item.html b/partitions/templates/partitions/liste_item.html index f9f4f30..5c79f2f 100644 --- a/partitions/templates/partitions/liste_item.html +++ b/partitions/templates/partitions/liste_item.html @@ -3,9 +3,9 @@ {{ part.nom }} - {{ part.auteur }} {% endif %} {% if user.is_authenticated %} - {{ part.nom }} - {{ part.auteur }} + {{ part.nom }} - {{ part.auteur }} {% endif %} {% if user.profile.is_chef %} - Supprimer + Supprimer {% endif %} diff --git a/partitions/templates/partitions/listepart.html b/partitions/templates/partitions/listepart.html index eb21125..4ad9628 100644 --- a/partitions/templates/partitions/listepart.html +++ b/partitions/templates/partitions/listepart.html @@ -11,7 +11,7 @@
    {% if user.profile.is_chef %} -
    + {% csrf_token %} {{ form.as_p }} @@ -29,19 +29,19 @@ -

    Ajouter un média

    +

    Ajouter un média

    {% endblock %} diff --git a/partitions/templates/partitions/new.html b/partitions/templates/partitions/new.html index 21d9728..94edda1 100644 --- a/partitions/templates/partitions/new.html +++ b/partitions/templates/partitions/new.html @@ -8,11 +8,11 @@

    {{ error }}

    {% endif %}

    - + {% csrf_token %} {{ form.as_p }}

    -

    Retour à la liste

    +

    Retour à la liste

    {% endblock %} diff --git a/partitions/templates/partitions/upload.html b/partitions/templates/partitions/upload.html index 27acd1f..e29b235 100644 --- a/partitions/templates/partitions/upload.html +++ b/partitions/templates/partitions/upload.html @@ -9,12 +9,12 @@ {% endif %}

    Le nom du fichier ne doit pas contenir d'accents -
    + {% csrf_token %} {{ form.as_p }}

    -

    Retour aux partitions

    +

    Retour aux partitions

    {% endblock %} diff --git a/partitions/urls.py b/partitions/urls.py index 6a7917b..90d7b06 100644 --- a/partitions/urls.py +++ b/partitions/urls.py @@ -1,19 +1,24 @@ -from django.conf.urls import patterns, url +from django.conf.urls import url -urlpatterns = patterns( - 'partitions.views', - url(r'^$', 'liste'), - url(r'^(?P[^/]+)/(?P[^/]+)/?$', 'listepart'), - url(r'^(?P[^/]+)/(?P[^/]+)/upload/?$', 'upload'), - url(r'^(?P[^/]+)/(?P[^/]+)/delete/?$', 'delete_morc'), - url(r'^(?P[^/]+)/(?P[^/]+)/conf/?$', 'conf_delete_morc'), +from partitions import views + +urlpatterns = [ + url(r'^$', views.liste, name='partitions-liste'), + url(r'^(?P[^/]+)/(?P[^/]+)/?$', views.listepart, + name='partitions-listepart'), + url(r'^(?P[^/]+)/(?P[^/]+)/upload/?$', views.upload, + name='partitions-upload'), + url(r'^(?P[^/]+)/(?P[^/]+)/delete/?$', views.delete_morc, + name='partitions-delete_morc'), + url(r'^(?P[^/]+)/(?P[^/]+)/conf/?$', views.conf_delete_morc, + name='partitions-conf_delete_morc'), url(r'^(?P[^/]+)/(?P[^/]+)/see/(?P\d+)/?$', - 'see'), + views.see, name='partitions-see'), url(r'^(?P[^/]+)/(?P[^/]+)/(?P\d+)/$', - 'download'), + views.download, name='partitions-download'), url(r'^(?P[^/]+)/(?P[^/]+)/(?P[^/]+)/delete/?$', - 'delete'), + views.delete, name='partitions-delete'), url(r'^(?P[^/]+)/(?P[^/]+)/(?P[^/]+)/conf/?$', - 'conf_delete'), - url(r'^new/?$', 'ajouter_morceau'), - ) + views.conf_delete, name='partitions-conf_delete'), + url(r'^new/?$', views.ajouter_morceau, name='partitions-ajouter_morceau'), +] diff --git a/propositions/templates/propositions/create.html b/propositions/templates/propositions/create.html index af560cf..d8a0b26 100644 --- a/propositions/templates/propositions/create.html +++ b/propositions/templates/propositions/create.html @@ -3,9 +3,9 @@ {%block titre %}Proposition de morceau{% endblock %} {% block content %} -

    Retour aux propositions

    +

    Retour aux propositions

    {% if envoi %}

    Votre proposition a été enregistrée.{% endif %} -
    + {% csrf_token %} {{ form.as_p }} diff --git a/propositions/templates/propositions/delete.html b/propositions/templates/propositions/delete.html index 1502cbd..dca7910 100644 --- a/propositions/templates/propositions/delete.html +++ b/propositions/templates/propositions/delete.html @@ -3,7 +3,7 @@ {% block titre %}Suppression d'une proposition{% endblock %} {% block content %} {% csrf_token %} -

    Retour aux propositions

    +

    Retour aux propositions

    Voulez vous vraiment supprimer la proposition {{ object }}?

    diff --git a/propositions/templates/propositions/liste.html b/propositions/templates/propositions/liste.html index 129f307..a723212 100644 --- a/propositions/templates/propositions/liste.html +++ b/propositions/templates/propositions/liste.html @@ -1,22 +1,40 @@ {% extends "gestion/base.html" %} {% load getresponse %} -{% block titre %}Propositions de morceau{% endblock %} -{% block content %}

    Liste des propositions

    -{% if error %} -

    {{ error }}

    -{% endif %} -

    Proposer un morceau

    -{% if n > 0 %} -
- -{% for p in props %} - - -{% getresponse request.user.profile p %} -{% endfor %} -
OuiNon
{% if p.lien %}{% endif %}{{ p.nom }}{% if p.artiste %} - {{ p.artiste }}{% endif %}{% if p.lien %}{% endif %}{{p.nboui }}{{ p.nbnon }}OuiNon{% if p.user == request.user.profile or request.user.profile.is_chef %}Supprimer{% endif %}
-{% else %} -Pas de proposition pour le moment -{% endif %} +{% block titre %}Propositions de morceau{% endblock %} + +{% block content %} +

Liste des propositions

+ {% if error %} +

{{ error }}

+ {% endif %} + +

Proposer un morceau

+ + {% if n > 0 %} + + + + + + + + + + {% for p in props %} + + + + + + + {% getresponse request.user.profile p %} + + + {% endfor %} +
OuiNon
+ {% if p.lien %}{% endif %}{{ p.nom }}{% if p.artiste %} - {{ p.artiste }}{% endif %}{% if p.lien %}{% endif %}{{ p.nboui }}{{ p.nbnon }}OuiNon{% if p.user == request.user.profile or request.user.profile.is_chef %}Supprimer{% endif %}
+ {% else %} + Pas de proposition pour le moment + {% endif %} {% endblock %} diff --git a/propositions/urls.py b/propositions/urls.py index ae0aa70..fb537b0 100644 --- a/propositions/urls.py +++ b/propositions/urls.py @@ -1,11 +1,13 @@ -from django.conf.urls import patterns, url -from propositions.views import PropDelete +from django.conf.urls import url -urlpatterns = patterns( - 'propositions.views', - url(r'^$', 'liste'), - url(r'^new/?$', 'create_prop'), - url(r'^(?P\d+)/oui/?$', 'repoui'), - url(r'^(?P\d+)/non/?$', 'repnon'), - url(r'^(?P\d+)/supprimer/?$', PropDelete.as_view()), - ) +from propositions.views import PropDelete +from propositions import views + +urlpatterns = [ + url(r'^$', views.liste, name='propositions-liste'), + url(r'^new/?$', views.create_prop, name='propositions-create'), + url(r'^(?P\d+)/oui/?$', views.repoui, name='propositions-oui'), + url(r'^(?P\d+)/non/?$', views.repnon, name='propositions-non'), + url(r'^(?P\d+)/supprimer/?$', PropDelete.as_view(), + name='propositions-delete'), +] diff --git a/templates/admin/base_site.html b/templates/admin/base_site.html index 8721ce8..3601039 100644 --- a/templates/admin/base_site.html +++ b/templates/admin/base_site.html @@ -5,7 +5,7 @@ {% block branding %}

{{ site_header|default:_('Django administration') }} - -Accueil

+Accueil {% endblock %} {% block nav-global %}{% endblock %}