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

ajout timer et verifs commande

parent 911c2666
No related branches found
No related tags found
No related merge requests found
Showing
with 348 additions and 106 deletions
No preview for this file type
......@@ -23,74 +23,3 @@ class commande_crepe(models.Model):
livreur = models.ForeignKey(utilisateur, on_delete=models.CASCADE, related_name='commanditaire', blank=True, null=True)
date = models.DateTimeField(auto_now_add=True)
\ No newline at end of file
# class clé(models.Model):
# nom=models.CharField(max_length=300)
# value=models.CharField(max_length=300)
#from django.contrib.auth.models import AbstractUser
# class User(AbstractUser):
# rien = 'pas_cotisant'
# cotisant = 'cotisant'
# vip = 'vip'
# stepgif = 'stepgif'
# ROLE_CHOICES = (
# (rien, 'pas_cotisant'),
# (cotisant, 'cotisant'),
# (vip, 'vip'),
# (stepgif, 'stepgif'),
# )
# role = models.CharField(max_length=30,choices=ROLE_CHOICES)
# # id viarezo ?
# class Commande_crepe(models.Model):
# # la personne qui commande
# pour_qui = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, related_name='commanditaire_crepe')
# adresse_livraison = models.CharField(max_length=300)
# # état de la commande
# qui_s_en_charge = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, related_name='esclave_crepe')
# a_prendre_en_charge = 'a prendre en charge'
# en_cours = 'cotisant'
# finie = 'finie'
# ETAT_CHOICES = (
# (a_prendre_en_charge, 'a prendre en charge'),
# (en_cours, 'cotisant'),
# (finie, 'finie'),
# )
# etat = models.CharField(max_length=30,choices=ETAT_CHOICES, blank=True,null=True)
# # quelle commande : type de crêpes
# crepe_nature = models.IntegerField(blank=True)
# crepe_sucre = models.IntegerField(blank=True)
# crepe_nutella = models.IntegerField(blank=True)
# crepe_confiture = models.IntegerField(blank=True)
# class Type_hotline_vip(models.Model):
# nom = models.CharField(max_length=300)
# # descriptions ?
# class Commande_vip(models.Model):
# # la personne qui commande
# pour_qui = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, related_name='commanditaire_vip')
# adresse_livraison = models.CharField(max_length=300)
# # état de la commande
# qui_s_en_charge = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, related_name='esclave_vip')
# a_prendre_en_charge = 'a prendre en charge'
# en_cours = 'cotisant'
# finie = 'finie'
# ETAT_CHOICES = (
# (a_prendre_en_charge, 'a prendre en charge'),
# (en_cours, 'cotisant'),
# (finie, 'finie'),
# )
# etat = models.CharField(max_length=30,choices=ETAT_CHOICES)
# # type de commande
# type = models.ForeignKey(Type_hotline_vip, on_delete=models.CASCADE, blank=True,null=True)
var commander = document.getElementById("bouton_crepes");
var bouton_nature = document.getElementById("nature");
......@@ -8,7 +7,11 @@ var bouton_confiture = document.getElementById("confiture");
var bouton_adresse = document.getElementById("adresse")
bloc = document.getElementById("commande_crepe");
messageof = true
var messageof_zero = true
var messageof_trop = true
var messageof_adresse = true
var messageof_string = true
function f (){
var nature = bouton_nature.value;
......@@ -16,16 +19,47 @@ function f (){
var sucre = bouton_sucre.value;
var confiture = bouton_confiture.value;
var adresse = bouton_adresse.value;
console.log(parseInt(nature))
if ((typeof(nature)!=BigInt || typeof(sucre)!=BigInt || typeof(confiture)!=BigInt || typeof(nutella)!=BigInt) && messageof_string){
console.log("pbtypestring")
var paraph = document.createElement("p");
var texte = document.createTextNode("Le nombre de crêpes doit être entier.");
paraph.appendChild(texte);
bloc.appendChild(paraph);
messageof_string=false;
}
else{
somme=parseInt(nature)+parseInt(nutella)+parseInt(sucre)+parseInt(confiture)
if (somme <= 0 && messageof_zero ){
console.log("pasassezdecrepes")
var paraph = document.createElement("p");
var texte = document.createTextNode("Vous devez choisir au moins une crêpe pour passer une commande.");
paraph.appendChild(texte);
bloc.appendChild(paraph);
messageof_zero=false;
}
if (parseInt(nature)+parseInt(sucre)+parseInt(nutella)+parseInt(confiture) !== 0 && adresse!==""){
window.location = "http://localhost:8000/mes_commandes/"+nature+"_"+nutella+"_"+sucre+"_"+confiture+"_"+adresse+"_";
if (somme > 40 && messageof_trop){
console.log("tropdecrepes")
var paraph = document.createElement("p");
var texte = document.createTextNode("Vous ne pouvez pas commander plus de 40 crêpes d'un coup.");
paraph.appendChild(texte);
bloc.appendChild(paraph);
messageof_trop=false;
}
else if (messageof) {
if (adresse==="" && messageof_adresse) {
console.log("pbadresse")
var paraph = document.createElement("p");
var texte = document.createTextNode("Vouz devez avoir rentré une adresse et choisi au moins une crêpe pour passer une commande.");
paraph.appendChild(texte);
bloc.appendChild(paraph);
messageof=false;
messageof_adresse=false;
}
if (adresse!=="" && somme >0 && somme <= 40 ){
console.log("caenvoie")
window.location = "http://localhost:8000/mes_commandes/"+nature+"_"+nutella+"_"+sucre+"_"+confiture+"_"+adresse+"_";
}
}
}
commander.addEventListener("click", f);
......@@ -8,9 +8,11 @@
{% block content %}
<div class="commandes">
TOUTES LES COMMANDES NON PRISES EN CHARGE
VIP
{% for commande in commandes %}
<div class="une_commande">
{% if commande.statut == 'a traiter'%}
{% if commande.statut == 'a traiter' and commande.commanditaire.role != "cotisant" %}
Commanditaire:{{commande.commanditaire}}
Adresse de Livraison:{{commande.adresse_livraison}}
Commandée le:{{commande.date}}
......@@ -30,33 +32,30 @@
{% endif %}
</div>
{%endfor%}
<div>
<div class="mes_commandes">
TOUTES MES LIVRAISONS
COTISANTS
{% for commande in commandes %}
<div class="une_commande">
{% if commande.statut != 'close' and commande.livreur.email == email %}
{% if commande.statut == 'a traiter'%}
Commanditaire:{{commande.commanditaire}}
Statut:{{commande.statut}}
Adresse de Livraison:{{commande.adresse_livraison}}
Commandée le:{{commande.date}}
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}}
Crêpes confiture : {{commande.crepe_confiture}}
{% endif %}
{% if commande.crepe_nutella != 0 %}
Crêpes nature : {{commande.crepe_nutella}}
Crêpes nutella : {{commande.crepe_nutella}}
{% endif %}
{% if commande.crepe_sucre != 0 %}
Crêpes nature : {{commande.crepe_sucre}}
Crêpes sucre : {{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>
<a class="prendre en charge" href="{% url 'prendre_en_charge' pkrequete=commande.pk %}"> Prendre en charge</a>
{% endif %}
</div>
{%endfor%}
<div>
{% endblock %}
\ No newline at end of file
......@@ -10,18 +10,18 @@
{% for commande in commandes %}
<div class="une_commande">
{% if commande.statut != "close" and commande.commanditaire.email == email %}
Vous avez commandé à {{commande.date}}:
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 nature : {{commande.crepe_confiture}}
Crêpes confiture : {{commande.crepe_confiture}}
{% endif %}
{% if commande.crepe_nutella != 0 %}
Crêpes nature : {{commande.crepe_nutella}}
Crêpes nutella : {{commande.crepe_nutella}}
{% endif %}
{% if commande.crepe_sucre != 0 %}
Crêpes nature : {{commande.crepe_sucre}}
Crêpes sucre : {{commande.crepe_sucre}}
{% endif %}
{% if commande.statut == "a traiter" %}
Votre commande n'est pas encore prise en charge
......
......@@ -13,7 +13,7 @@
{% if commande.statut != 'close' and commande.livreur.email == email %}
Commanditaire:{{commande.commanditaire}}
Adresse de Livraison:{{commande.adresse_livraison}}
Commandée le:{{commande.date}}
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 %}
......
{% extends 'campagne/base.html'%}
{% load static %}
{% block cssEtTitre %}
<link rel="stylesheet" href="{% static 'campagne/css/hotline.css' %}" />
{% endblock %}
{% block content %}
<p>Vous devez patienter {{min}} min {{sec}} sec avant la prochaine commande.</p>
{% endblock %}
\ No newline at end of file
......@@ -11,7 +11,7 @@
{% if commande.statut == 'en cours' %}
Commanditaire:{{commande.commanditaire}}
Adresse de Livraison:{{commande.adresse_livraison}}
Commandée le:{{commande.date}}
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 %}
......
......@@ -3,11 +3,30 @@ from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from campagne.models import utilisateur, commande_crepe
from django.shortcuts import redirect
# from campagne.models import clé
import requests
import json
# from cryptography.fernet import Fernet
from django.core.mail import send_mail
import datetime
encrypt={'A': 'b', 'B': '7', 'C': 'U', 'D': 'f', 'E': '_', 'F': 'A', 'G': '1', 'H': 'V', 'I': 'r', 'J': 'p', 'K': 'X', 'L': 'i', 'M': 'L', 'N': 'h', 'O': 'B', 'P': '8', 'Q': '2', 'R': 'W', 'S': 'l', 'T': '.', 'U': 'E', 'V': 'D', 'W': 'u', 'X': '-', 'Y': 't', 'Z': 'Y', 'a': 'O', 'b': 'G', 'c': 'Z', 'd': 'K', 'e': 'q', 'f': '9', 'g': 'T', 'h': 'S', 'i': 'M', 'j': 'Q', 'k': 'R', 'l': 'n', 'm': 'z', 'n': 'I', 'o': 's', 'p': 'k', 'q': 'o', 'r': 'y', 's': '/', 't': 'c', 'u': 'N', 'v': 'J', 'w': 'x', 'x': 'd', 'y': 'H', 'z': 'C', '0': '4', '1': '6', '2': '+', '3': 'j', '4': 'm', '5': 'w', '6': 'g', '7': 'e', '8': 'a', '9': '5', '+': 'P', '/': '3', '.': 'v', '-': 'F', '_': '0'}
decrypt={'b': 'A', '7': 'B', 'U': 'C', 'f': 'D', '_': 'E', 'A': 'F', '1': 'G', 'V': 'H', 'r': 'I', 'p': 'J', 'X': 'K', 'i': 'L', 'L': 'M', 'h': 'N', 'B': 'O', '8': 'P', '2': 'Q', 'W': 'R', 'l': 'S', '.': 'T', 'E': 'U', 'D': 'V', 'u': 'W', '-': 'X', 't': 'Y', 'Y': 'Z', 'O': 'a', 'G': 'b', 'Z': 'c', 'K': 'd', 'q': 'e', '9': 'f', 'T': 'g', 'S': 'h', 'M': 'i', 'Q': 'j', 'R': 'k', 'n': 'l', 'z': 'm', 'I': 'n', 's': 'o', 'k': 'p', 'o': 'q', 'y': 'r', '/': 's', 'c': 't', 'N': 'u', 'J': 'v', 'x': 'w', 'd': 'x', 'H': 'y', 'C': 'z', '4': '0', '6': '1', '+': '2', 'j': '3', 'm': '4', 'w': '5', 'g': '6', 'e': '7', 'a': '8', '5': '9', 'P': '+', '3': '/', 'v': '.', 'F': '-', '0': '_'}
def encryptmess(message):
mess=""
for i in range(len(message)):
mess=mess+encrypt[message[i]]
return mess
def decryptmess(message):
mess=""
for i in range(len(message)):
mess=mess+decrypt[message[i]]
return mess
def connexion(request):
return HttpResponseRedirect('https://auth.viarezo.fr/oauth/authorize/?redirect_uri=http://localhost:8000&client_id=2fe828e15647fc92437727b6646ce5c799c40991&response_type=code&state=sqdkfjhsqdkf&scope=default')
......@@ -29,7 +48,8 @@ def login(request): #on a le state et le authorization code dans le request
useer.prenom = r.json()['firstName']
useer.nom=r.json()['lastName']
useer.save()
reponse.set_cookie("token",access_token, secure=True)
token_crypté=encryptmess(access_token)
reponse.set_cookie("token",token_crypté, secure=True)
return reponse
def accueil(request):
......@@ -60,13 +80,31 @@ def hotline(request):
test[1])
return redirect(connexion)
def date_to_second(date):
return 24*3600*int(date.day)+3600*int(date.hour)+60*int(date.minute)+int(date.second)
def commande_passee(request, requete):
L = requete.split('_')
token=request.COOKIES.get('token')
token_crypté=request.COOKIES.get('token')
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})
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',
# 'commande de {{commande.commanditaire}} de {{commande.crepe_nature}} crêpes natures, de {{commande.crepe_sucre}} crêpes sucres, de {{commande.crepe_confiture}} crêpes confiture et de {{commande.crepe_nutella}} crêpes nutella',
# 'stepgifimstuck@gmail.com',
# ['stepgifimstuck@gmail.com'])
return redirect(mes_commandes)
def mes_commandes(request):
......@@ -111,7 +149,7 @@ def clore(request, pkrequete):
commande=commande_crepe.objects.get(pk=pkrequete)
commande.statut="close"
commande.save()
return redirect(mes_commandes)
return redirect(mes_livraisons)
return HttpResponse("Vous n'avez pas les autorisations requises pour accéder à cette page")
......@@ -120,7 +158,8 @@ def vip(request):
def check(request):
if request.COOKIES.get('token'):
token=request.COOKIES.get('token')
token_crypté=request.COOKIES.get('token')
token=decryptmess(token_crypté)
r = requests.get("https://auth.viarezo.fr/api/user/show/me", headers={"Authorization" : "Bearer "+token})
mail = r.json()['email']
role=utilisateur.objects.get(email=mail)
......@@ -135,3 +174,234 @@ def redirect_admin(request, url):
def addtodb():
admin=[
" james.tran@student-cs.fr",
" alix.peyrot@student-cs.fr",
" alix.simier@student-cs.fr",
" hugo.guideau@student-cs.fr",
" bertille.bouget@student-cs.fr",
" maximilien.lyonnais@student-cs.fr",
" martin.du-reau@student-cs.fr",
" sacha.kretz@student-cs.fr",
" baptiste.aubert@student-cs.fr",
" marine.teissedre@student-cs.fr",
" gad.encaoua@student-cs.fr",
" khalil.stout@student-cs.fr",
" diane.patri@student-cs.fr",
" raphael.doste@student-cs.fr",
" kelian.tinentouolac@student-cs.fr",
" alexandre.sepulveda-de-dietrich@student-cs.fr",
" pierre.magre@student-cs.fr",
" medreda.belkahla@student-cs.fr",
" yann.lindegaard@student-cs.fr",
" milo.hivert@student-cs.fr",
" maxime.barbaut@student-cs.fr",
" hassan.fayad@student-cs.fr",
" sacha.cohen@student-cs.fr",
" capucine.lefebure@student-cs.fr",
" marine.bruneau@student-cs.fr",
" oscar.parlier@student-cs.fr",
" baptiste.leray@student-cs.fr",
" quentin.rebut@student-cs.fr",
" antoine.hanachowicz@student-cs.fr"
]
vip=[
" alban.cusset@student-cs.fr",
" leane.pelletier@student-cs.fr",
" erina.bard@student-cs.fr",
" pierre.meyssonnier@student-cs.fr",
" nathan.fournier@student-cs.fr",
" felix.pejot@student-cs.fr",
" antoine.vaglio@student-cs.fr",
" elina.roussel@student-cs.fr",
" nicolas.rapineau@student-cs.fr",
" jean.dormois@student-cs.fr",
" louise.simoulin@student-cs.fr",
" anais.ulloa@student-cs.fr",
" leonard.wolff@student-cs.fr",
" nathan.ferreira@student-cs.fr",
" sara.abkari@student-cs.fr",
" simeon.boyer@student-cs.fr",
" dorian.cochennec@student-cs.fr",
" eulalie.tissot@student-cs.fr",
" vianney.delemazure@student-cs.fr",
" jules.winstel@student-cs.fr",
" clara.bou-hanna@student-cs.fr",
" thibault.chopin@student-cs.fr",
" aymeric.jaoulfavier@student-cs.fr",
" jad.latif@student-cs.fr",
" victor.varoqui@student-cs.fr",
" zakaria.ajerame@student-cs.fr",
" adam.el-harti@student-cs.fr",
" yassine.abbad-andaloussi@student-cs.fr",
" ali.berni@student-cs.fr",
" antonia.raquiman@student-cs.fr",
" vincent.nguyen@student-cs.fr",
" lucie.rochas@student-cs.fr",
" noe.aussant@student-cs.fr",
" marin.bouraguba@student-cs.fr",
" julio.segui-basco@student-cs.fr",
" daphnee.roger@student-cs.fr",
" matis.ronsain@student-cs.fr",
" thomas.decossebrissac@student-cs.fr",
" raphael.le-nadan@student-cs.fr",
" laurent.barthelemy@student-cs.fr",
" gabriel.duguey@student-cs.fr",
" jaime.lopez-espada@student-cs.fr",
" camille.quellier@student-cs.fr",
" cyrielle.theobald@student-cs.fr",
" arthur.sibille@student-cs.fr",
" jules.mouradian@student-cs.fr",
" constant.chauvin@student-cs.fr",
" matthieu.mechin@student-cs.fr",
" clovis.petre@student-cs.fr",
" alexis.bretin@student-cs.fr",
" owen.josse@student-cs.fr",
" clement.aranda@student-cs.fr",
" pierre-eudes.carreau@student-cs.fr",
" anatole.huard@student-cs.fr",
" yann.filleur@student-cs.fr",
" camille.gayraud@student-cs.fr",
" justine.pereira@student-cs.fr",
" samuel.cordon@student-cs.fr",
" alexia.lanore@student-cs.fr",
" ninon.atienza@student-cs.fr",
" raphael.levisse@student-cs.fr",
" lilian.marsal@student-cs.fr",
" joel.carles-gonzalez@student-cs.fr",
" hamza.errahj@student-cs.fr",
" oussama.arrayech@student-cs.fr",
" ludovic.mulat@student-cs.fr",
" theophile.rousselle@student-cs.fr",
" maxime.anno@student-cs.fr",
" elise.meissirel@student-cs.fr",
" arnaud.destarac@student-cs.fr",
" barthelemy.arminjon@student-cs.fr",
" etienne.camus@student-cs.fr",
" alban.pinet@student-cs.fr",
" octave.pignet@student-cs.fr",
" sacha.cario@student-cs.fr",
" antoine.cheneau@student-cs.fr",
" pierre.gourdou@student-cs.fr",
" rayan.lebbadi@student-cs.fr",
" emma.guetta@student-cs.fr",
" antoine.manyeres@student-cs.fr",
" quentin.granier@student-cs.fr",
" benjamin.boutier@student-cs.fr",
" anas.slaoui@student-cs.fr",
" ploum.cayla@student-cs.fr",
" maite.robert@student-cs.fr",
" matthieu.antoine@student-cs.fr",
" arthur.bernard2@student-cs.fr",
" riade.bhih@student-cs.fr",
" thierry.aba@student-cs.fr",
" cecile.mentz@student-cs.fr",
" clement.marechal@student-cs.fr",
" sebastien.louis@student-cs.fr",
" leo.fagard@student-cs.fr",
" felix.regnier@student-cs.fr",
" moustapha.hashem@student-cs.fr",
" charlotte.jouffre@student-cs.fr",
" xavier.bodard@student-cs.fr",
" luis.bottraud@student-cs.fr",
" robin.truffinet@student-cs.fr",
" lancelot.michea@student-cs.fr",
" olivier.beck@student-cs.fr",
" simon.delalande@student-cs.fr",
" cornelia.huller@student-cs.fr",
" pierre-amaury.laforcade@student-cs.fr",
" louis.viennot@student-cs.fr",
" melen.le-corre@student-cs.fr",
" thibault.henique@student-cs.fr",
" leo.molinier@student-cs.fr",
" mehdi.mouden@student-cs.fr",
" yann.duchesne@student-cs.fr",
" kiria.filleul@student-cs.fr",
" othman.benmoussa@student-cs.fr",
" erhart.jean@student-cs.fr",
" adrien.peccenini@student-cs.fr",
" margaux.falliondalmonte@student-cs.fr",
" maxime.archambault@student-cs.fr",
" thomas.bougnon@student-cs.fr",
" titouan.benard@student-cs.fr",
" mathilde.loume@student-cs.fr",
" ilyass.guenfoudi@student-cs.fr",
" jack.royer@student-cs.fr",
" paul.ferreol@student-cs.fr",
" jad.zarzour@student-cs.fr",
" leonard.corre@student-cs.fr",
" arthur.groussin@student-cs.fr",
" robin.charleuf@student-cs.fr",
" thibault.rousset@student-cs.fr",
" matthieu.dominici@student-cs.fr",
" mohamed.ladraa@student-cs.fr",
" mateo.dufresne-d-amico@student-cs.fr",
" arthur.besnault@student-cs.fr",
" louis.jacquemart@student-cs.fr",
" thibaud.arnaud@student-cs.fr",
" felix.de-la-ronciere@student-cs.fr",
" hugo.thevenet@student-cs.fr",
" hugo.wolff@student-cs.fr",
" jules.rigaud@student-cs.fr",
" zoe.garbal@student-cs.fr",
" vladimir.petrovic@student-cs.fr",
" claire.robin@student-cs.fr",
" antoine.hauser@student-cs.fr",
" victor.athanasio@student-cs.fr",
" simon.tronchi@student-cs.fr",
" brieuc.devevey@student-cs.fr",
" clara.rieffel@student-cs.fr",
" yvan.duhen@student-cs.fr",
" jeanbaptiste.peter@student-cs.fr",
" romain.fournier@student-cs.fr",
" remi.quentin@student-cs.fr",
" thomas.meot@student-cs.fr",
" noah.vicens@student-cs.fr",
" robin.delebassee@student-cs.fr",
" mohamed.larhchim@student-cs.fr",
" hicham.bouanani@student-cs.fr",
" matthieu.annequin@student-cs.fr",
" valentin.odde@student-cs.fr",
" emma.lovisa@student-cs.fr",
" florence.remy@student-cs.fr",
" majda.brahimi@student-cs.fr",
" romain.picard@student-cs.fr",
" romain.picard@student-cs.fr",
" youssef.chadali@student-cs.fr",
" arnaud.petit@student-cs.fr",
" thomas.moreau@student-cs.fr",
" edouard.chauliac@student-cs.fr",
" mehdi.hmyene@student-cs.fr",
" alban.falck@student-cs.fr",
" mehdi.bennis@student-cs.fr",
" louis.puisset@student-cs.fr",
" emma.menegatti@student-cs.fr",
" thomas.buscaylet@student-cs.fr",
" tanguy.blervacque@student-cs.fr",
" iona.serquin@student-cs.fr",
" lisa.mollo@student-cs.fr",
" louis.scremin@student-cs.fr",
" norbert.gravellier@student-cs.fr",
" roman.lapuente@student-cs.fr",
" elise.desbordes@student-cs.fr",
" paul.tristant@student-cs.fr",
" adrien.guenard@student-cs.fr",
" pierre.marthan@student-cs.fr",
" paul.saliba@student-cs.fr",
" maximilien.porcher@student-cs.fr",
" renanf.bdemorais@student-cs.fr",
" maxime.rault@student-cs.fr",
" come.stephant@student-cs.fr",
" jiling.li@student-cs.fr",
" thomas.josse@student-cs.fr",
" francois.porcher@student-cs.fr",
" louis.lacapere@student-cs.fr",
" etienne.dechambost@student-cs.fr",
" anais.potier@student-cs.fr",
" lucie.clemot@student-cs.fr",
" geoffrey.dauge@student-cs.fr"]
for mail in admin:
utilisateur.objects.create(email=mail,role="admin").save()
for mail in vip:
utilisateur.objects.create(email=mail,role="vip").save()
No preview for this file type
No preview for this file type
......@@ -108,11 +108,11 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
TIME_ZONE = 'Europe/Paris'
USE_I18N = True
USE_TZ = True
USE_TZ = False
# Static files (CSS, JavaScript, Images)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment