Skip to content
Snippets Groups Projects
Commit 8592feae authored by Milo Hivert's avatar Milo Hivert
Browse files

ajout

parents dd657055 5d765c9b
No related branches found
No related tags found
No related merge requests found
File deleted
...@@ -16,7 +16,6 @@ function f (){ ...@@ -16,7 +16,6 @@ function f (){
var sucre = bouton_sucre.value; var sucre = bouton_sucre.value;
var confiture = bouton_confiture.value; var confiture = bouton_confiture.value;
var adresse = bouton_adresse.value; var adresse = bouton_adresse.value;
if (parseInt(nature)+parseInt(sucre)+parseInt(nutella)+parseInt(confiture) !== 0 && adresse!==""){ if (parseInt(nature)+parseInt(sucre)+parseInt(nutella)+parseInt(confiture) !== 0 && adresse!==""){
window.location = "https://astegifetobegif.cs-campus.fr/mes_commandes/"+nature+"_"+nutella+"_"+sucre+"_"+confiture+"_"+adresse+"_"; window.location = "https://astegifetobegif.cs-campus.fr/mes_commandes/"+nature+"_"+nutella+"_"+sucre+"_"+confiture+"_"+adresse+"_";
} }
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
<div class="text_box"> <div class="text_box">
<p>ATTENTION: Pour accéder à la hotline, vous devez avoir signé <a href="https://cotiz.viarezo.fr/">la nouvelle charte du BDE</a> !!</p> <p>ATTENTION: Pour accéder à la hotline, vous devez avoir signé <a href="https://cotiz.viarezo.fr/">la nouvelle charte du BDE</a> !!</p>
<br> <br>
<br> <a href="{% url 'hotline' %}" style="background-color: #e7c021; color:white;padding: 1%;border-radius: 15px;margin-top: 1%;">Hotline</a>
<a href="" style="background-color: #e7c021; color:white;padding: 1%;border-radius: 15px;margin-top: 1%;">Hotline</a>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -93,6 +93,8 @@ def annuler(request, pkrequete): ...@@ -93,6 +93,8 @@ def annuler(request, pkrequete):
return redirect(mes_commandes) return redirect(mes_commandes)
def prendre_en_charge(request, pkrequete): def prendre_en_charge(request, pkrequete):
test=check(request)
if test[0]:
test=check(request) test=check(request)
if test[0]: if test[0]:
mail=test[1]['email'] mail=test[1]['email']
...@@ -296,39 +298,38 @@ def addtodb(): ...@@ -296,39 +298,38 @@ def addtodb():
#"arthur.groussin@student-cs.fr", #"arthur.groussin@student-cs.fr",
#"robin.charleuf@student-cs.fr", #"robin.charleuf@student-cs.fr",
#"thibault.rousset@student-cs.fr", #"thibault.rousset@student-cs.fr",
#"matthieu.dominici@student-cs.fr", "mateo.dufresne-d-amico@student-cs.fr",
#"mohamed.ladraa@student-cs.fr", "arthur.besnault@student-cs.fr",
# "mateo.dufresne-d-amico@student-cs.fr", "louis.jacquemart@student-cs.fr",
# "arthur.besnault@student-cs.fr", "thibaud.arnaud@student-cs.fr",
# "louis.jacquemart@student-cs.fr", "felix.de-la-ronciere@student-cs.fr",
# "thibaud.arnaud@student-cs.fr", "hugo.thevenet@student-cs.fr",
# "felix.de-la-ronciere@student-cs.fr", "hugo.wolff@student-cs.fr",
# "hugo.thevenet@student-cs.fr", "jules.rigaud@student-cs.fr",
# "hugo.wolff@student-cs.fr", "zoe.garbal@student-cs.fr",
# "jules.rigaud@student-cs.fr", "vladimir.petrovic@student-cs.fr",
# "zoe.garbal@student-cs.fr", "claire.robin@student-cs.fr",
# "vladimir.petrovic@student-cs.fr", "antoine.hauser@student-cs.fr",
# "claire.robin@student-cs.fr", "victor.athanasio@student-cs.fr",
# "antoine.hauser@student-cs.fr", "simon.tronchi@student-cs.fr",
# "victor.athanasio@student-cs.fr", "brieuc.devevey@student-cs.fr",
# "simon.tronchi@student-cs.fr", "clara.rieffel@student-cs.fr",
# "brieuc.devevey@student-cs.fr", "yvan.duhen@student-cs.fr",
# "clara.rieffel@student-cs.fr", "jeanbaptiste.peter@student-cs.fr",
# "yvan.duhen@student-cs.fr", "romain.fournier@student-cs.fr",
# "jeanbaptiste.peter@student-cs.fr", "remi.quentin@student-cs.fr",
# "romain.fournier@student-cs.fr", "thomas.meot@student-cs.fr",
# "remi.quentin@student-cs.fr", "noah.vicens@student-cs.fr",
# "thomas.meot@student-cs.fr", "robin.delebassee@student-cs.fr",
# "noah.vicens@student-cs.fr", "mohamed.larhchim@student-cs.fr",
# "robin.delebassee@student-cs.fr", "hicham.bouanani@student-cs.fr",
# "mohamed.larhchim@student-cs.fr", "matthieu.annequin@student-cs.fr",
# "hicham.bouanani@student-cs.fr", "valentin.odde@student-cs.fr",
# "matthieu.annequin@student-cs.fr", "emma.lovisa@student-cs.fr",
# "valentin.odde@student-cs.fr", "florence.remy@student-cs.fr",
# "emma.lovisa@student-cs.fr", "majda.brahimi@student-cs.fr",
# "florence.remy@student-cs.fr", "romain.picard@student-cs.fr",
# "majda.brahimi@student-cs.fr",
# "romain.picard@student-cs.fr",
"youssef.chadali@student-cs.fr", "youssef.chadali@student-cs.fr",
"arnaud.petit@student-cs.fr", "arnaud.petit@student-cs.fr",
"thomas.moreau@student-cs.fr", "thomas.moreau@student-cs.fr",
......
File deleted
File deleted
...@@ -27,6 +27,8 @@ SECRET_KEY = 'django-insecure-^pwp$p=!_g7hoyl&1kul+!v(!y9lu+6@-+1d_&auub18m^h@w( ...@@ -27,6 +27,8 @@ SECRET_KEY = 'django-insecure-^pwp$p=!_g7hoyl&1kul+!v(!y9lu+6@-+1d_&auub18m^h@w(
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ["138.195.139.213", "localhost", "astegifetobegif.cs-campus.fr", "*"]
ALLOWED_HOSTS = ["138.195.139.213", "localhost", "astegifetobegif.cs-campus.fr", "*"] ALLOWED_HOSTS = ["138.195.139.213", "localhost", "astegifetobegif.cs-campus.fr", "*"]
# Application definition # Application definition
...@@ -133,3 +135,9 @@ SESSION_ENGINE = 'encrypted_cookies' ...@@ -133,3 +135,9 @@ SESSION_ENGINE = 'encrypted_cookies'
ENCRYPTED_COOKIE_KEYS = ['HZJSZGQU3fiJaG53Ha1jYZGZkxrqGDF3m-nZN3fhe46='] ENCRYPTED_COOKIE_KEYS = ['HZJSZGQU3fiJaG53Ha1jYZGZkxrqGDF3m-nZN3fhe46=']
SESSION_COOKIE_SECURE = False SESSION_COOKIE_SECURE = False
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'stepgifimstuck@gmail.com'
EMAIL_HOST_PASSWORD = 'hotlineCrepesLeS'
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment