diff --git a/site_campagne/campagne/__pycache__/views.cpython-310.pyc b/site_campagne/campagne/__pycache__/views.cpython-310.pyc
index 80796424bbfe4d2ce58f9f4c08c1b9ceda4766de..43f262439506ef0bef1da3bb5de6f69d33f6c95e 100644
Binary files a/site_campagne/campagne/__pycache__/views.cpython-310.pyc and b/site_campagne/campagne/__pycache__/views.cpython-310.pyc differ
diff --git a/site_campagne/campagne/static/campagne/css/base.css b/site_campagne/campagne/static/campagne/css/base.css
index a559777a9699e1f238107fa0b9493bdcb10a07bc..ce09e72cbffac021e933aec904df32903dbb29dd 100644
--- a/site_campagne/campagne/static/campagne/css/base.css
+++ b/site_campagne/campagne/static/campagne/css/base.css
@@ -17,6 +17,7 @@ body{
 }
 
 .wrapper{
+  margin-top: 0;
   background-image: url("../images/bg.png");
   background-attachment: fixed;
   background-size: 100%;
@@ -25,7 +26,7 @@ body{
 
 @media (min-width : 50em){
   .wrapper{
-    background-image: url("../images/banquet.png");
+    background-image: url("../images/banquet2.png");
     background-attachment: fixed;
     background-size: 100%;
     padding: 10% 3% 3% 3%;
@@ -281,6 +282,45 @@ position: relative;
 }
 
 .une_commande{
-  margin:1% 0;
+  margin:5px;
+  padding:1px;
+  padding-bottom: 7px;
+  border: 1px solid black;
+  border-radius:5px;
+  
+}
+
+.une_commande p {
+  margin:3px;
+  padding:0;
+  text-align:center;
+}
+
+.commandes{
+  display: grid;
+  grid-template-columns: repeat( auto-fit, minmax(300px, 1fr));
+  text-align: center;
+}
+
+.bouton_gerer_commande{
+  text-decoration:none;
+  padding:0.5%;
+  margin:3px;
+  margin-top:7px;
+  border:1px solid black;
+  background-color: lightgrey;
+  color:black;
+  border-radius:5px;
+  transition: 100ms;
+}
+
+.bouton_gerer_commande:hover{
+  background-color: rgb(182, 182, 182);
+}
 
+.titre_page{
+  text-align:center;
+  font-weight:bold;
+  font-size:25px;
+  padding-bottom:10px;
 }
\ No newline at end of file
diff --git a/site_campagne/campagne/static/campagne/images/banquet2.png b/site_campagne/campagne/static/campagne/images/banquet2.png
new file mode 100644
index 0000000000000000000000000000000000000000..ff7839242836244df079db4b67563196c97436b9
Binary files /dev/null and b/site_campagne/campagne/static/campagne/images/banquet2.png differ
diff --git a/site_campagne/campagne/templates/campagne/adminpage.html b/site_campagne/campagne/templates/campagne/adminpage.html
deleted file mode 100644
index f80405607bc6c7eb235b35d1799b27c8edb7552d..0000000000000000000000000000000000000000
--- a/site_campagne/campagne/templates/campagne/adminpage.html
+++ /dev/null
@@ -1,90 +0,0 @@
-{% extends 'campagne/base.html'%}
-{% load static %}
-
-{% block cssEtTitre %}
-<link rel="stylesheet" href="{% static 'campagne/css/hotline.css' %}" />
-{% endblock %}
-
-{% block content %}
-<div class="commandes">
-    TOUTES LES COMMANDES NON PRISES EN CHARGE
-    {% for commande in commandes %}
-        <div class="une_commande">
-            {% if  commande.statut != 'close'  and  commande.livreur.email != email  %}
-                Commanditaire:{{commande.commanditaire}}
-                Adresse de Livraison:{{commande.adresse_livraison}}
-                Commandée le:{{commande.date}}
-                {% if commande.crepe_nature != 0 %}
-                    Crêpes nature : {{commande.crepe_nature}}
-                {% endif %}
-                {% if commande.crepe_confiture != 0 %}
-                    Crêpes confiture : {{commande.crepe_confiture}}
-                {% endif %}
-                {% if commande.crepe_nutella != 0 %}
-                    Crêpes nutella : {{commande.crepe_nutella}}
-                {% endif %}
-                {% if commande.crepe_sucre != 0 %}
-                    Crêpes sucre : {{commande.crepe_sucre}}
-                {% endif %}
-                {% if commande.statut == 'a traiter' %}
-                    {{commande.pk}}
-                    {% comment %} <a class="prendre en charge" href="../prendre_en_charge/{{commande.pk}}"> Prendre en charge</a> {% endcomment %}
-                    <a class="prendre en charge" href="{% url 'prendre_en_charge' pkrequete=commande.pk %}"> Prendre en charge</a>
-                    {% else %}
-                    Commande en cours de livraison, livreur: {{commande.livreur.prenom}} {{commande.livreur.nom}}
-                {% endif%}
-            {% endif %}
-        </div>
-    {%endfor%}
-<div>
-<div class="mes_commandes">
-    TOUTES MES LIVRAISONS
-    {% for commande in commandes %}
-        <div class="une_commande">
-            {% if  commande.statut != 'close'  and  commande.livreur.email == email %}
-                Commanditaire:{{commande.commanditaire}}
-                Statut:{{commande.statut}}
-                Adresse de Livraison:{{commande.adresse_livraison}}
-                Commandée le:{{commande.date}}
-                {% if commande.crepe_nature != 0 %}
-                    Crêpes nature : {{commande.crepe_nature}}
-                {% endif %}
-                {% if commande.crepe_confiture != 0 %}
-                    Crêpes nature : {{commande.crepe_confiture}}
-                {% endif %}
-                {% if commande.crepe_nutella != 0 %}
-                    Crêpes nature : {{commande.crepe_nutella}}
-                {% endif %}
-                {% if commande.crepe_sucre != 0 %}
-                    Crêpes nature : {{commande.crepe_sucre}}
-                {% endif %}
-                {% comment %} <a class="clore" href="../clore/{{commande.pk}}">Clore la commande</a> {% endcomment %}
-                <a class="clore" href="{% url 'clore' pkrequete=commande.pk %}">Clore la commande</a>
-            {% endif %}
-        </div>
-    {%endfor%}
-    MES DERNIERES LIVRAISONS
-    {% for commande in commandes %}
-        <div class="une_commande">
-            {% if  commande.statut == 'close'  and  commande.livreur.email == email %}
-                Commanditaire:{{commande.commanditaire}}
-                Statut:{{commande.statut}}
-                Adresse de Livraison:{{commande.adresse_livraison}}
-                Commandée le:{{commande.date}}
-                {% if commande.crepe_nature != 0 %}
-                    Crêpes nature : {{commande.crepe_nature}}
-                {% endif %}
-                {% if commande.crepe_confiture != 0 %}
-                    Crêpes nature : {{commande.crepe_confiture}}
-                {% endif %}
-                {% if commande.crepe_nutella != 0 %}
-                    Crêpes nature : {{commande.crepe_nutella}}
-                {% endif %}
-                {% if commande.crepe_sucre != 0 %}
-                    Crêpes nature : {{commande.crepe_sucre}}
-                {% endif %}
-            {% endif %}
-        </div>
-    {%endfor%}
-<div>
-{% endblock %}
\ No newline at end of file
diff --git a/site_campagne/campagne/templates/campagne/commandes_campus.html b/site_campagne/campagne/templates/campagne/commandes_campus.html
index 8a9c205b1f575fedcb8da59f379f7b85a2a2908f..0eabb7d248a3b8b5ea19ba26304fd4b045dd9fd7 100644
--- a/site_campagne/campagne/templates/campagne/commandes_campus.html
+++ b/site_campagne/campagne/templates/campagne/commandes_campus.html
@@ -6,38 +6,39 @@
 {% endblock %}
 
 {% block content %}
-<div class="commandes">
-    <p>TOUTES LES COMMANDES NON PRISES EN CHARGE</p>
+<div class="wrapper">
     <div class="block_commande">
-        <p>VIP</p>
+        <p class ="titre_page">TOUTES LES COMMANDES NON PRISES EN CHARGE</p>
+        <p class="titre_page">VIP</p>
+        <div class="commandes">
         {% for commande in commandes %}
-            <div class="une_commande">
-                {% if  commande.statut == 'a traiter' and commande.commanditaire.role != "cotisant" %}
-                    Commanditaire:{{commande.commanditaire}}
-                    Adresse de Livraison:{{commande.adresse_livraison}}
-                    Commandée le:{{commande.date}}
+            {% if  commande.statut == 'a traiter' and commande.commanditaire.role != "cotisant" %}
+                <div class="une_commande">
+                    <p>Commanditaire: {{commande.commanditaire.prenom}} {{commande.commanditaire.nom}}</p>
+                    <p>Adresse de Livraison: {{commande.adresse_livraison}}</p>
+                    <p>Commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}</p>
                     {% if commande.crepe_nature != 0 %}
-                        Crêpes nature : {{commande.crepe_nature}}
+                        <p>Crêpes nature : {{commande.crepe_nature}}</p>
                     {% endif %}
                     {% if commande.crepe_confiture != 0 %}
-                        Crêpes confiture : {{commande.crepe_confiture}}
+                        <p>Crêpes confiture : {{commande.crepe_confiture}}</p>
                     {% endif %}
                     {% if commande.crepe_nutella != 0 %}
-                        Crêpes nutella : {{commande.crepe_nutella}}
+                        <p>Crêpes nutella : {{commande.crepe_nutella}}</p>
                     {% endif %}
                     {% if commande.crepe_sucre != 0 %}
-                        Crêpes sucre : {{commande.crepe_sucre}}
+                        <p>Crêpes sucre : {{commande.crepe_sucre}}</p>
                     {% endif %}
-                    <a class="prendre en charge" href="{% url 'prendre_en_charge' pkrequete=commande.pk %}"> Prendre en charge</a>
-                {% endif %}
-            </div>
+                    <a class="bouton_gerer_commande" href="{% url 'prendre_en_charge' pkrequete=commande.pk %}"> Prendre en charge</a>
+                </div>
+            {% endif %}
         {%endfor%}
-    <div>
-    <div class="block_commande">
-        <p>COTISANTS</p>
+        </div>
+        <p class="titre_page">COTISANTS</p>
+        <div class="commandes">
         {% for commande in commandes %}
-            <div class="une_commande">
-                {% if  commande.statut == 'a traiter'%}
+            {% if  commande.statut == 'a traiter'%}
+                <div class="une_commande">
                     Commanditaire:{{commande.commanditaire}}
                     Adresse de Livraison:{{commande.adresse_livraison}}
                     Commandée le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}
@@ -54,9 +55,10 @@
                         Crêpes sucre : {{commande.crepe_sucre}}
                     {% endif %}
                     <a class="prendre en charge" href="{% url 'prendre_en_charge' pkrequete=commande.pk %}"> Prendre en charge</a>
-                {% endif %}
-            </div>
+                </div>
+            {% endif %}
         {%endfor%}
+        </div>
     </div>
-<div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/site_campagne/campagne/templates/campagne/hotline.html b/site_campagne/campagne/templates/campagne/hotline.html
index 88b63ee4ec355c1cab0a64ae38dbeb24728787e7..bf4acda1b2914f9bac81639c5708bfdda1ff9b14 100644
--- a/site_campagne/campagne/templates/campagne/hotline.html
+++ b/site_campagne/campagne/templates/campagne/hotline.html
@@ -8,8 +8,6 @@
 
 {% block content %}
 <div class="wrapper">
-    <br>
-    <br>
     <h1>
         <div class="row" style="display: flex;">
             <div class="column" style="flex: 10%;">
diff --git a/site_campagne/campagne/templates/campagne/mes_commandes.html b/site_campagne/campagne/templates/campagne/mes_commandes.html
index f0ef29d4d237978466cbfa6680df1d537c7f58db..1150405e09bdfb34046605d6479e22f96375bafd 100644
--- a/site_campagne/campagne/templates/campagne/mes_commandes.html
+++ b/site_campagne/campagne/templates/campagne/mes_commandes.html
@@ -6,32 +6,38 @@
 {% endblock %}
 
 {% block content %}
+<div class="wrapper">
     <div class="block_commande">
-        <p>Voici tes commandes</p>
-        {% for commande in commandes %}
-            <div class="une_commande">
+        <p class="titre_page">Voici tes commandes</p>
+        <div class="commandes">
+            {% for commande in commandes %}
                 {% if commande.statut != "close" and commande.commanditaire.email == email %}
-                    Vous avez commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}:
-                    {% if commande.crepe_nature != 0 %}
-                        Crêpes nature : {{commande.crepe_nature}}
-                    {% endif %}
-                    {% if commande.crepe_confiture != 0 %}
-                        Crêpes confiture : {{commande.crepe_confiture}}
-                    {% endif %}
-                    {% if commande.crepe_nutella != 0 %}
-                        Crêpes nutella : {{commande.crepe_nutella}}
-                    {% endif %}
-                    {% if commande.crepe_sucre != 0 %}
-                        Crêpes sucre : {{commande.crepe_sucre}}
-                    {% endif %}
-                    {% if commande.statut == "a traiter" %}
-                        Votre commande n'est pas encore prise en charge
-                        <a class="annuler" href="/annuler/{{commande.pk}}">Annuler la commande</a>
-                    {% else %}
-                        {{commande.livreur.prenom}} {{commande.livreur.nom}} a pris en charge ta commande
-                    {% endif %}
+                    <div class="une_commande">
+                        <p>Vous avez commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}.</p>
+                        <p>Adresse de Livraison: {{commande.adresse_livraison}}</p>
+                        <p>Commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}</p>
+                        {% if commande.crepe_nature != 0 %}
+                            <p>Crêpes nature : {{commande.crepe_nature}}</p>
+                        {% endif %}
+                        {% if commande.crepe_confiture != 0 %}
+                            <p>Crêpes confiture : {{commande.crepe_confiture}}</p>
+                        {% endif %}
+                        {% if commande.crepe_nutella != 0 %}
+                            <p>Crêpes nutella : {{commande.crepe_nutella}}</p>
+                        {% endif %}
+                        {% if commande.crepe_sucre != 0 %}
+                            <p>Crêpes sucre : {{commande.crepe_sucre}}</p>
+                        {% endif %}
+                        {% if commande.statut == "a traiter" %}
+                            <p>Votre commande n'est pas encore prise en charge</p>
+                            <a class="bouton_gerer_commande" href="/annuler/{{commande.pk}}">Annuler la commande</a>
+                        {% else %}
+                            {{commande.livreur.prenom}} {{commande.livreur.nom}} a pris en charge ta commande
+                        {% endif %}
+                    </div>
                 {% endif %}
-            </div>
-        {%endfor%}
+            {%endfor%}
+        </div>
     </div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/site_campagne/campagne/templates/campagne/mes_livraisons.html b/site_campagne/campagne/templates/campagne/mes_livraisons.html
index 49a5767dba9ae843eff6fd83bc733fad59d823d3..4713e9039f77961a0e32a8e12abb6742d78a6fe4 100644
--- a/site_campagne/campagne/templates/campagne/mes_livraisons.html
+++ b/site_campagne/campagne/templates/campagne/mes_livraisons.html
@@ -6,29 +6,33 @@
 {% endblock %}
 
 {% block content %}
+<div class="wrapper">
     <div class="block_commande">
-        TOUTES MES LIVRAISONS
-        {% for commande in commandes %}
-            <div class="une_commande">
+        <p class="titre_page">TOUTES MES LIVRAISONS</p>
+        <div class="commandes">
+            {% for commande in commandes %}
                 {% if  commande.statut != 'close'  and  commande.livreur.email == email %}
-                    Commanditaire:{{commande.commanditaire}}
-                    Adresse de Livraison:{{commande.adresse_livraison}}
-                    Commandée le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}
-                    {% if commande.crepe_nature != 0 %}
-                        Crêpes nature : {{commande.crepe_nature}}
-                    {% endif %}
-                    {% if commande.crepe_confiture != 0 %}
-                        Crêpes nature : {{commande.crepe_confiture}}
-                    {% endif %}
-                    {% if commande.crepe_nutella != 0 %}
-                        Crêpes nature : {{commande.crepe_nutella}}
-                    {% endif %}
-                    {% if commande.crepe_sucre != 0 %}
-                        Crêpes nature : {{commande.crepe_sucre}}
-                    {% endif %}
-                    <a class="clore" href="{% url 'clore' pkrequete=commande.pk %}">Clore la commande</a>
-                {% endif %}
-            </div>
-        {%endfor%}
-    <div>
+                    <div class="une_commande">
+                        <p>Commanditaire: {{commande.commanditaire.prenom}} {{commande.commanditaire.nom}}</p>
+                        <p>Adresse de Livraison: {{commande.adresse_livraison}}</p>
+                        <p>Commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}</p>
+                        {% if commande.crepe_nature != 0 %}
+                            <p>Crêpes nature : {{commande.crepe_nature}}</p>
+                        {% endif %}
+                        {% if commande.crepe_confiture != 0 %}
+                            <p>Crêpes confiture : {{commande.crepe_confiture}}</p>
+                        {% endif %}
+                        {% if commande.crepe_nutella != 0 %}
+                            <p>Crêpes nutella : {{commande.crepe_nutella}}</p>
+                        {% endif %}
+                        {% if commande.crepe_sucre != 0 %}
+                            <p>Crêpes sucre : {{commande.crepe_sucre}}</p>
+                        {% endif %}
+                        <a class="bouton_gerer_commande" href="{% url 'clore' pkrequete=commande.pk %}">Clore la commande</a>
+                    </div>
+                {% endif %}  
+            {%endfor%}
+        <div>
+    </div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/site_campagne/campagne/templates/campagne/qui_travaille.html b/site_campagne/campagne/templates/campagne/qui_travaille.html
index e815f6b72864dbca29cfd0e99f8b715d039d2a76..1dbdf0c95352ed729188814f071ff39ae37bbb56 100644
--- a/site_campagne/campagne/templates/campagne/qui_travaille.html
+++ b/site_campagne/campagne/templates/campagne/qui_travaille.html
@@ -6,28 +6,33 @@
 {% endblock %}
 
 {% block content %}
+<div class="wrapper">
     <div class="block_commande">
-        {% for commande in commandes %}
-            <div class="une_commande">
+        <p class="titre_page">Qui travaille ?<p>
+        <div class="commandes" >
+            {% for commande in commandes %}
                 {% if  commande.statut == 'en cours' %}
-                    Commanditaire:{{commande.commanditaire}}
-                    Adresse de Livraison:{{commande.adresse_livraison}}
-                    Commandée le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}
-                    {% if commande.crepe_nature != 0 %}
-                        Crêpes nature : {{commande.crepe_nature}}
-                    {% endif %}
-                    {% if commande.crepe_confiture != 0 %}
-                        Crêpes confiture : {{commande.crepe_confiture}}
-                    {% endif %}
-                    {% if commande.crepe_nutella != 0 %}
-                        Crêpes nutella : {{commande.crepe_nutella}}
-                    {% endif %}
-                    {% if commande.crepe_sucre != 0 %}
-                        Crêpes sucre : {{commande.crepe_sucre}}
-                    {% endif %}
-                    Livreur: {{commande.livreur.prenom}} {{commande.livreur.nom}}
+                    <div class="une_commande">
+                        <p>Commanditaire: {{commande.commanditaire.prenom}} {{commande.commanditaire.nom}}</p>
+                        <p>Adresse de Livraison: {{commande.adresse_livraison}}</p>
+                        <p>Commandé le {{commande.date.day}}/{{commande.date.month}} à {{ commande.date.hour}}:{{commande.date.minute}}</p>
+                        {% if commande.crepe_nature != 0 %}
+                            <p>Crêpes nature : {{commande.crepe_nature}}</p>
+                        {% endif %}
+                        {% if commande.crepe_confiture != 0 %}
+                            <p>Crêpes confiture : {{commande.crepe_confiture}}</p>
+                        {% endif %}
+                        {% if commande.crepe_nutella != 0 %}
+                            <p>Crêpes nutella : {{commande.crepe_nutella}}</p>
+                        {% endif %}
+                        {% if commande.crepe_sucre != 0 %}
+                            <p>Crêpes sucre : {{commande.crepe_sucre}}</p>
+                        {% endif %}
+                        <p>Livreur: {{commande.livreur.prenom}} {{commande.livreur.nom}}</p>
+                    </div>
                 {% endif %}
-            </div>
-        {%endfor%}  
+            {%endfor%}  
+        </div>
     </div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/site_campagne/campagne/views.py b/site_campagne/campagne/views.py
index 42e6377ad5255e46ec9de4adfb744a1530aabb5f..d3970df6547ead2576619bbc334645c6ba09c838 100644
--- a/site_campagne/campagne/views.py
+++ b/site_campagne/campagne/views.py
@@ -5,7 +5,6 @@ from campagne.models import utilisateur, commande_crepe
 from django.shortcuts import redirect
 import requests
 import json
-# from cryptography.fernet import Fernet
 
 from django.core.mail import send_mail
 import datetime
@@ -29,13 +28,13 @@ def decryptmess(message):
 
 
 def connexion(request):
-    return HttpResponseRedirect('https://auth.viarezo.fr/oauth/authorize/?redirect_uri=https://astegifetobegif.cs-campus.fr/intermediaire&client_id=2fe828e15647fc92437727b6646ce5c799c40991&response_type=code&state=sqdkfjhsqdkf&scope=default')
+    return HttpResponseRedirect('https://auth.viarezo.fr/oauth/authorize/?redirect_uri=http://localhost:8000&client_id=2fe828e15647fc92437727b6646ce5c799c40991&response_type=code&state=sqdkfjhsqdkf&scope=default')
 
 def login(request): #on a le state et le authorization code dans le request
     code = str(request.GET['code']),
     state = str(request.GET['state'])
     url = 'https://auth.viarezo.fr/oauth/token'
-    redirect_url = 'https://astegifetobegif.cs-campus.fr/intermediaire'
+    redirect_url = 'http://localhost:8000'
     jso = requests.post(url, data={'grant_type':'authorization_code','code':code,'redirect_uri':redirect_url,'client_id':'2fe828e15647fc92437727b6646ce5c799c40991','client_secret':'f306614fc96833e80af693f2991901bc54a9cf9a'}).json()
     access_token = jso['access_token']
     r = requests.get("https://auth.viarezo.fr/api/user/show/me", headers={"Authorization" : "Bearer "+access_token})
@@ -89,23 +88,25 @@ def commande_passee(request, requete):
     token=decryptmess(token_crypté)
     r = requests.get("https://auth.viarezo.fr/api/user/show/me", headers={"Authorization" : "Bearer "+token})
     mail = r.json()['email']
-    last_command_user=commande_crepe.objects.filter(commanditaire=utilisateur.objects.get(email=mail)).last()
-    date_derniere_commande=last_command_user.date
-    date_mtn = datetime.datetime.now()
-    last_command_second = date_to_second(date_derniere_commande)
-    mtn_second = date_to_second(date_mtn)
-    durée_dernière_commande=mtn_second-last_command_second
-    temps_entre_commandes=60*10
-    if durée_dernière_commande <= temps_entre_commandes:
-        patiente=temps_entre_commandes-durée_dernière_commande
-        return render(request,"campagne/patiente.html",{"min":patiente//60, "sec":patiente%60})
+    if commande_crepe.objects.filter(commanditaire=utilisateur.objects.get(email=mail)).exists():
+        last_command_user=commande_crepe.objects.filter(commanditaire=utilisateur.objects.get(email=mail)).last()
+        date_derniere_commande=last_command_user.date
+        date_mtn = datetime.datetime.now()
+        last_command_second = date_to_second(date_derniere_commande)
+        mtn_second = date_to_second(date_mtn)
+        durée_dernière_commande=mtn_second-last_command_second
+        temps_entre_commandes=60*10
+        if durée_dernière_commande <= temps_entre_commandes:
+            patiente=temps_entre_commandes-durée_dernière_commande
+            return render(request,"campagne/patiente.html",{"min":patiente//60, "sec":patiente%60})
     commande=commande_crepe.objects.create(adresse_livraison=L[4], crepe_nature=L[0], crepe_nutella=L[1], crepe_sucre=L[2], crepe_confiture=L[3],commanditaire=utilisateur.objects.get(email=mail))
     commande.save()
-    #send_mail('commande crêpes',
-     #       'Nouvelle commande',
-     #       'stepgifimstuck@gmail.com',
-     #       ['stepgifimstuck@gmail.com'])
+        #send_mail('commande crêpes',
+        #       'Nouvelle commande',
+        #       'stepgifimstuck@gmail.com',
+        #       ['stepgifimstuck@gmail.com'])
     return redirect(mes_commandes)
+    
 
 def mes_commandes(request):
     test=check(request)
diff --git a/site_campagne/site_campagne/__pycache__/settings.cpython-310.pyc b/site_campagne/site_campagne/__pycache__/settings.cpython-310.pyc
index f32b3b78cd18a4109dd16bda524ebbb97cc439a2..caa0c58c98fc5caafdc2c25ebc52e5b950e2c900 100644
Binary files a/site_campagne/site_campagne/__pycache__/settings.cpython-310.pyc and b/site_campagne/site_campagne/__pycache__/settings.cpython-310.pyc differ
diff --git a/site_campagne/site_campagne/__pycache__/urls.cpython-310.pyc b/site_campagne/site_campagne/__pycache__/urls.cpython-310.pyc
index 0f6b67df00a1dd687c536ece0834d40f63b40a4b..78ed14a495ffd927efc9002bdc582a73b2338595 100644
Binary files a/site_campagne/site_campagne/__pycache__/urls.cpython-310.pyc and b/site_campagne/site_campagne/__pycache__/urls.cpython-310.pyc differ
diff --git a/site_campagne/site_campagne/urls.py b/site_campagne/site_campagne/urls.py
index 3a5e1e07ea82817ffc36a4cff25915c97a1f19d4..928e1e2a7c9510f78e903fa96bce4b119b987886 100644
--- a/site_campagne/site_campagne/urls.py
+++ b/site_campagne/site_campagne/urls.py
@@ -34,5 +34,5 @@ urlpatterns = [
     path('connexion/',views.connexion, name="connexion"),
     path('vip', views.vip, name='vip'),
     path('intermediaire/', views.login, name="login"),
-    path('',views.accueil, name="accueil"),
+    path('',views.login, name="login"),
 ]