└── src ├── Juillet ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── settings.cpython-37.pyc │ ├── urls.cpython-37.pyc │ └── wsgi.cpython-37.pyc ├── settings.py ├── urls.py └── wsgi.py ├── db.sqlite3 ├── home ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── admin.cpython-37.pyc │ ├── models.cpython-37.pyc │ └── views.cpython-37.pyc ├── admin.py ├── apps.py ├── migrations │ └── __pycache__ │ │ └── __init__.cpython-37.pyc ├── models.py ├── tests.py └── views.py ├── inscription ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── admin.cpython-37.pyc │ ├── forms.cpython-37.pyc │ ├── models.cpython-37.pyc │ └── views.cpython-37.pyc ├── admin.py ├── apps.py ├── forms.py ├── migrations │ ├── 0001_initial.py │ ├── 0002_depot_retrait.py │ ├── 0003_auto_20190726_1031.py │ ├── 0004_auto_20190726_1033.py │ ├── 0005_utilisateur_username.py │ ├── 0006_historique.py │ ├── 0007_auto_20190728_1349.py │ ├── 0008_categorie_championat_equipe.py │ ├── 0009_auto_20190801_1902.py │ ├── 0010_remove_choixmatch_matchid.py │ └── __pycache__ │ │ ├── 0001_initial.cpython-37.pyc │ │ ├── 0002_depot_retrait.cpython-37.pyc │ │ ├── 0003_auto_20190726_1031.cpython-37.pyc │ │ ├── 0004_auto_20190726_1033.cpython-37.pyc │ │ ├── 0005_utilisateur_username.cpython-37.pyc │ │ ├── 0006_historique.cpython-37.pyc │ │ ├── 0007_auto_20190728_1349.cpython-37.pyc │ │ ├── 0008_categorie_championat_equipe.cpython-37.pyc │ │ ├── 0009_auto_20190801_1902.cpython-37.pyc │ │ ├── 0009_match.cpython-37.pyc │ │ ├── 0010_choixmatch_paris.cpython-37.pyc │ │ ├── 0010_remove_choixmatch_matchid.cpython-37.pyc │ │ ├── 0010_tickets.cpython-37.pyc │ │ ├── 0011_auto_20190801_1816.cpython-37.pyc │ │ ├── 0011_paris.cpython-37.pyc │ │ ├── 0012_match_slug.cpython-37.pyc │ │ ├── 0013_remove_match_slug.cpython-37.pyc │ │ ├── 0014_auto_20190801_0646.cpython-37.pyc │ │ ├── 0015_choix_paris.cpython-37.pyc │ │ └── __init__.cpython-37.pyc ├── models.py ├── tests.py └── views.py ├── manage.py ├── paris_sport.sql ├── requirements.txt ├── static ├── css │ ├── connexion.css │ ├── principal.css │ └── styles.css ├── images │ ├── 107 (1).png │ ├── 107.png │ ├── 1446.png │ ├── 1491.png │ ├── 463.png │ ├── 706.png │ ├── dark.jpg │ ├── liga.png │ ├── quarterback.png │ ├── sidebar.jpeg │ └── sidebar.png └── js │ └── app.js └── templates ├── base.html ├── base1.html ├── base2.html ├── connexion └── connexion.html ├── home └── home.html ├── inscription.html └── principal ├── depot.html ├── footer.html ├── header.html ├── historique.html ├── jeux.html ├── panier.html ├── principal.html └── retrait.html /src/Juillet/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/Juillet/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /src/Juillet/__pycache__/settings.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/Juillet/__pycache__/settings.cpython-37.pyc -------------------------------------------------------------------------------- /src/Juillet/__pycache__/urls.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/Juillet/__pycache__/urls.cpython-37.pyc -------------------------------------------------------------------------------- /src/Juillet/__pycache__/wsgi.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/Juillet/__pycache__/wsgi.cpython-37.pyc -------------------------------------------------------------------------------- /src/Juillet/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Django settings for Juillet project. 3 | 4 | Generated by 'django-admin startproject' using Django 2.2.3. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/2.2/topics/settings/ 8 | 9 | For the full list of settings and their values, see 10 | https://docs.djangoproject.com/en/2.2/ref/settings/ 11 | """ 12 | 13 | import os 14 | 15 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...) 16 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 17 | 18 | 19 | # Quick-start development settings - unsuitable for production 20 | # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ 21 | 22 | # SECURITY WARNING: keep the secret key used in production secret! 23 | SECRET_KEY = '8*zczq2npagytd_7ecy+7p_=0gf^02751q210=ntgr05)rc%_t' 24 | 25 | # SECURITY WARNING: don't run with debug turned on in production! 26 | DEBUG = True 27 | 28 | ALLOWED_HOSTS = [] 29 | 30 | 31 | # Application definition 32 | 33 | INSTALLED_APPS = [ 34 | 'django.contrib.admin', 35 | 'django.contrib.auth', 36 | 'django.contrib.contenttypes', 37 | 'django.contrib.sessions', 38 | 'django.contrib.messages', 39 | 'django.contrib.staticfiles', 40 | 'home', 41 | 'inscription', 42 | ] 43 | 44 | MIDDLEWARE = [ 45 | 'django.middleware.security.SecurityMiddleware', 46 | 'django.contrib.sessions.middleware.SessionMiddleware', 47 | 'django.middleware.common.CommonMiddleware', 48 | 'django.middleware.csrf.CsrfViewMiddleware', 49 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 50 | 'django.contrib.messages.middleware.MessageMiddleware', 51 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 52 | ] 53 | 54 | ROOT_URLCONF = 'Juillet.urls' 55 | 56 | TEMPLATES = [ 57 | { 58 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 59 | 'DIRS': [os.path.join(BASE_DIR, 'templates')], 60 | 'APP_DIRS': True, 61 | 'OPTIONS': { 62 | 'context_processors': [ 63 | 'django.template.context_processors.debug', 64 | 'django.template.context_processors.request', 65 | 'django.contrib.auth.context_processors.auth', 66 | 'django.contrib.messages.context_processors.messages', 67 | ], 68 | }, 69 | }, 70 | ] 71 | 72 | WSGI_APPLICATION = 'Juillet.wsgi.application' 73 | 74 | 75 | # Database 76 | # https://docs.djangoproject.com/en/2.2/ref/settings/#databases 77 | 78 | DATABASES = { 79 | 'default': { 80 | 'ENGINE': 'django.db.backends.mysql', 81 | 'NAME': 'paris_sport', 82 | 'USER': 'root', 83 | 'PASSWORD': '', 84 | 'HOST': 'localhost', # Or an IP Address that your DB is hosted on 85 | 'PORT': '3306', 86 | } 87 | } 88 | 89 | 90 | # Password validation 91 | # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators 92 | 93 | AUTH_PASSWORD_VALIDATORS = [ 94 | { 95 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 96 | }, 97 | { 98 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 99 | }, 100 | { 101 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 102 | }, 103 | { 104 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 105 | }, 106 | ] 107 | 108 | 109 | # Internationalization 110 | # https://docs.djangoproject.com/en/2.2/topics/i18n/ 111 | 112 | LANGUAGE_CODE = 'fr' 113 | 114 | TIME_ZONE = 'UTC' 115 | 116 | USE_I18N = True 117 | 118 | USE_L10N = False 119 | 120 | USE_TZ = True 121 | 122 | 123 | # Static files (CSS, JavaScript, Images) 124 | # https://docs.djangoproject.com/en/2.2/howto/static-files/ 125 | 126 | STATIC_URL = '/static/' 127 | STATICFILES_DIRS = [ 128 | os.path.join(BASE_DIR, "static"), 129 | ] 130 | -------------------------------------------------------------------------------- /src/Juillet/urls.py: -------------------------------------------------------------------------------- 1 | """Juillet URL Configuration 2 | 3 | The `urlpatterns` list routes URLs to views. For more information please see: 4 | https://docs.djangoproject.com/en/2.2/topics/http/urls/ 5 | Examples: 6 | Function views 7 | 1. Add an import: from my_app import views 8 | 2. Add a URL to urlpatterns: path('', views.home, name='home') 9 | Class-based views 10 | 1. Add an import: from other_app.views import Home 11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') 12 | Including another URLconf 13 | 1. Import the include() function: from django.urls import include, path 14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 15 | """ 16 | from django.contrib import admin 17 | from django.urls import path,include 18 | from django.conf.urls import url 19 | from home.views import home_view 20 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns 21 | from inscription.views import inscription_view , connexion_view , principal_view,logout,retrait_view,depot_view,historique_view,match_view,cart_create,cartlist,cartDelete,panier 22 | from django.contrib.auth import views as auth_views 23 | urlpatterns =[ 24 | path('', home_view, name='home'), 25 | path('admin/', admin.site.urls), 26 | path('sigin/', inscription_view , name="sigin" ), 27 | path('principal/', principal_view, name="principal"), 28 | path('login/', connexion_view, name="login" ), 29 | path('logout/', logout, name="logout" ), 30 | path('retrait/',retrait_view, name="retrait" ), 31 | path('depot/', depot_view, name="depot" ), 32 | path('historique/',historique_view, name="transac" ), 33 | path('panier/',panier, name="panier" ), 34 | path('jeux/',match_view, name="jeux" ), 35 | url(r'^cart/create/$', cart_create, name='cart_create'), 36 | path('panier/list/', cartlist, name='room_list'), 37 | path('panier/delete/',cartDelete , name='room_delete') 38 | ] 39 | 40 | urlpatterns += staticfiles_urlpatterns() 41 | -------------------------------------------------------------------------------- /src/Juillet/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for Juillet project. 3 | 4 | It exposes the WSGI callable as a module-level variable named ``application``. 5 | 6 | For more information on this file, see 7 | https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ 8 | """ 9 | 10 | import os 11 | 12 | from django.core.wsgi import get_wsgi_application 13 | 14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Juillet.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /src/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/db.sqlite3 -------------------------------------------------------------------------------- /src/home/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/home/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /src/home/__pycache__/admin.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/home/__pycache__/admin.cpython-37.pyc -------------------------------------------------------------------------------- /src/home/__pycache__/models.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/home/__pycache__/models.cpython-37.pyc -------------------------------------------------------------------------------- /src/home/__pycache__/views.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/home/__pycache__/views.cpython-37.pyc -------------------------------------------------------------------------------- /src/home/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /src/home/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class HomeConfig(AppConfig): 5 | name = 'home' 6 | -------------------------------------------------------------------------------- /src/home/migrations/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/home/migrations/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /src/home/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /src/home/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /src/home/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | def home_view(request,*args, **kwargs): 5 | return render(request,"home/home.html",{}) 6 | -------------------------------------------------------------------------------- /src/inscription/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/__pycache__/admin.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/__pycache__/admin.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/__pycache__/forms.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/__pycache__/forms.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/__pycache__/models.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/__pycache__/models.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/__pycache__/views.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/__pycache__/views.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import Utilisateur,Depot,Retrait,Categorie,Championat,Equipe,Match,choixMatch,Paris 3 | # Register your models here. 4 | admin.site.register(Utilisateur) 5 | admin.site.register(Depot) 6 | admin.site.register(Retrait) 7 | admin.site.register(Categorie) 8 | admin.site.register(Championat) 9 | admin.site.register(Equipe) 10 | admin.site.register(Match) 11 | admin.site.register(choixMatch) 12 | admin.site.register(Paris) -------------------------------------------------------------------------------- /src/inscription/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class InscriptionConfig(AppConfig): 5 | name = 'inscription' 6 | -------------------------------------------------------------------------------- /src/inscription/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from .models import Depot, Retrait 3 | class registerForm(forms.Form): 4 | nom = forms.CharField(max_length=60) 5 | prenoms = forms.CharField(max_length=60) 6 | date_naissance = forms.DateField() 7 | sexe = forms.CharField(max_length=20) 8 | email = forms.EmailField(max_length=254) 9 | pays = forms.CharField(max_length=60) 10 | ville = forms.CharField(max_length=20) 11 | numero = forms.CharField(max_length=20) 12 | password = forms.CharField(max_length=100) 13 | 14 | class DepotForm(forms.ModelForm): 15 | 16 | class Meta: 17 | model = Depot 18 | fields = ('operateur','numero', 'Montant_depot',) 19 | 20 | widgets = { 21 | 'operateur': forms.TextInput(attrs={'class': 'textinputclass'}), 22 | 'numero': forms.TextInput(attrs={'class': 'textinputclass'}), 23 | 'Montant_depot': forms.TextInput(attrs={'class': 'textinputclass'}), 24 | } -------------------------------------------------------------------------------- /src/inscription/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-24 01:50 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | initial = True 9 | 10 | dependencies = [ 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Utilisateur', 16 | fields=[ 17 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('nom', models.CharField(max_length=60)), 19 | ('prenoms', models.CharField(max_length=60)), 20 | ('date_naissance', models.DateField()), 21 | ('sexe', models.CharField(max_length=20)), 22 | ('email', models.EmailField(max_length=254)), 23 | ('pays', models.CharField(max_length=60)), 24 | ('ville', models.CharField(max_length=20)), 25 | ('solde', models.DecimalField(decimal_places=2, default=True, max_digits=10)), 26 | ('numero', models.CharField(max_length=20)), 27 | ('password', models.CharField(max_length=100)), 28 | ], 29 | ), 30 | ] 31 | -------------------------------------------------------------------------------- /src/inscription/migrations/0002_depot_retrait.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-26 09:24 2 | 3 | from django.db import migrations, models 4 | import django.db.models.deletion 5 | import django.utils.timezone 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | ('inscription', '0001_initial'), 12 | ] 13 | 14 | operations = [ 15 | migrations.CreateModel( 16 | name='Retrait', 17 | fields=[ 18 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 19 | ('operateur', models.CharField(max_length=200)), 20 | ('numero', models.TextField()), 21 | ('retrait_date', models.DateTimeField(default=django.utils.timezone.now)), 22 | ('Montant_retrait', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 23 | ('Utilisateur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Utilisateur')), 24 | ], 25 | ), 26 | migrations.CreateModel( 27 | name='Depot', 28 | fields=[ 29 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 30 | ('operateur', models.CharField(max_length=200)), 31 | ('numero', models.TextField()), 32 | ('depot_date', models.DateTimeField(default=django.utils.timezone.now)), 33 | ('Montant_depot', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 34 | ('Utilisateur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Utilisateur')), 35 | ], 36 | ), 37 | ] 38 | -------------------------------------------------------------------------------- /src/inscription/migrations/0003_auto_20190726_1031.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-26 09:31 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('inscription', '0002_depot_retrait'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='depot', 15 | name='operateur', 16 | field=models.TextField(max_length=200), 17 | ), 18 | migrations.AlterField( 19 | model_name='retrait', 20 | name='operateur', 21 | field=models.TextField(max_length=200), 22 | ), 23 | ] 24 | -------------------------------------------------------------------------------- /src/inscription/migrations/0004_auto_20190726_1033.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-26 09:33 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('inscription', '0003_auto_20190726_1031'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='depot', 15 | name='numero', 16 | field=models.CharField(max_length=20), 17 | ), 18 | migrations.AlterField( 19 | model_name='depot', 20 | name='operateur', 21 | field=models.CharField(max_length=20), 22 | ), 23 | migrations.AlterField( 24 | model_name='retrait', 25 | name='numero', 26 | field=models.CharField(max_length=20), 27 | ), 28 | migrations.AlterField( 29 | model_name='retrait', 30 | name='operateur', 31 | field=models.CharField(max_length=20), 32 | ), 33 | ] 34 | -------------------------------------------------------------------------------- /src/inscription/migrations/0005_utilisateur_username.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-26 12:29 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('inscription', '0004_auto_20190726_1033'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AddField( 14 | model_name='utilisateur', 15 | name='username', 16 | field=models.CharField(default='user', max_length=60), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /src/inscription/migrations/0006_historique.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-28 12:33 2 | 3 | from django.db import migrations, models 4 | import django.db.models.deletion 5 | import django.utils.timezone 6 | 7 | 8 | class Migration(migrations.Migration): 9 | 10 | dependencies = [ 11 | ('inscription', '0005_utilisateur_username'), 12 | ] 13 | 14 | operations = [ 15 | migrations.CreateModel( 16 | name='Historique', 17 | fields=[ 18 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 19 | ('Transaction', models.CharField(max_length=20)), 20 | ('date', models.DateTimeField(default=django.utils.timezone.now)), 21 | ('Montant_retrait', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 22 | ('operateur', models.CharField(max_length=20)), 23 | ('numero', models.CharField(max_length=20)), 24 | ('Utilisateur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Utilisateur')), 25 | ], 26 | ), 27 | ] 28 | -------------------------------------------------------------------------------- /src/inscription/migrations/0007_auto_20190728_1349.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-28 12:49 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('inscription', '0006_historique'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RenameField( 14 | model_name='historique', 15 | old_name='Montant_retrait', 16 | new_name='Montant', 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /src/inscription/migrations/0008_categorie_championat_equipe.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-07-29 01:48 2 | 3 | from django.db import migrations, models 4 | import django.db.models.deletion 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('inscription', '0007_auto_20190728_1349'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='Categorie', 16 | fields=[ 17 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('nom_cate', models.CharField(max_length=20)), 19 | ], 20 | ), 21 | migrations.CreateModel( 22 | name='Championat', 23 | fields=[ 24 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 25 | ('nom_cha', models.CharField(max_length=20)), 26 | ('Categorie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Categorie')), 27 | ], 28 | ), 29 | migrations.CreateModel( 30 | name='Equipe', 31 | fields=[ 32 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 33 | ('nom_Equipe', models.CharField(max_length=20)), 34 | ('Championat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Championat')), 35 | ], 36 | ), 37 | ] 38 | -------------------------------------------------------------------------------- /src/inscription/migrations/0009_auto_20190801_1902.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.3 on 2019-08-01 18:02 2 | 3 | from django.db import migrations, models 4 | import django.db.models.deletion 5 | 6 | 7 | class Migration(migrations.Migration): 8 | 9 | dependencies = [ 10 | ('inscription', '0008_categorie_championat_equipe'), 11 | ] 12 | 13 | operations = [ 14 | migrations.CreateModel( 15 | name='choixMatch', 16 | fields=[ 17 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 18 | ('match', models.CharField(max_length=60)), 19 | ('ordered', models.BooleanField(default=False)), 20 | ('equipe', models.CharField(max_length=20)), 21 | ('cote', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 22 | ('Utilisateur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Utilisateur')), 23 | ], 24 | ), 25 | migrations.CreateModel( 26 | name='Paris', 27 | fields=[ 28 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 29 | ('ref_code', models.CharField(blank=True, max_length=20, null=True)), 30 | ('coteTotal', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 31 | ('Mise', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 32 | ('Gain', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 33 | ('statut', models.CharField(max_length=20)), 34 | ('Utilisateur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Utilisateur')), 35 | ('selection', models.ManyToManyField(to='inscription.choixMatch')), 36 | ], 37 | ), 38 | migrations.CreateModel( 39 | name='Match', 40 | fields=[ 41 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 42 | ('date', models.DateField()), 43 | ('heure', models.TimeField()), 44 | ('v1', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 45 | ('v2', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 46 | ('x', models.DecimalField(decimal_places=2, default=False, max_digits=10)), 47 | ('Categorie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Categorie')), 48 | ('Championat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Championat')), 49 | ('equipe_1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='equipe_1', to='inscription.Equipe')), 50 | ('equipe_2', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Equipe')), 51 | ], 52 | ), 53 | migrations.AddField( 54 | model_name='choixmatch', 55 | name='matchid', 56 | field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscription.Match'), 57 | ), 58 | ] 59 | -------------------------------------------------------------------------------- /src/inscription/migrations/0010_remove_choixmatch_matchid.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 2.2.4 on 2019-08-01 21:33 2 | 3 | from django.db import migrations 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('inscription', '0009_auto_20190801_1902'), 10 | ] 11 | 12 | operations = [ 13 | migrations.RemoveField( 14 | model_name='choixmatch', 15 | name='matchid', 16 | ), 17 | ] 18 | -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0001_initial.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0001_initial.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0002_depot_retrait.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0002_depot_retrait.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0003_auto_20190726_1031.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0003_auto_20190726_1031.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0004_auto_20190726_1033.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0004_auto_20190726_1033.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0005_utilisateur_username.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0005_utilisateur_username.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0006_historique.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0006_historique.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0007_auto_20190728_1349.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0007_auto_20190728_1349.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0008_categorie_championat_equipe.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0008_categorie_championat_equipe.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0009_auto_20190801_1902.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0009_auto_20190801_1902.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0009_match.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0009_match.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0010_choixmatch_paris.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0010_choixmatch_paris.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0010_remove_choixmatch_matchid.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0010_remove_choixmatch_matchid.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0010_tickets.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0010_tickets.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0011_auto_20190801_1816.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0011_auto_20190801_1816.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0011_paris.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0011_paris.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0012_match_slug.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0012_match_slug.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0013_remove_match_slug.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0013_remove_match_slug.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0014_auto_20190801_0646.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0014_auto_20190801_0646.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/0015_choix_paris.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/0015_choix_paris.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/migrations/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guindosaros/python/9c4689b3d05da5b4d65738cfdb8a37e52dc2b872/src/inscription/migrations/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /src/inscription/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.utils import timezone 3 | from django.shortcuts import reverse 4 | 5 | # Create your models here. 6 | class Utilisateur (models.Model): 7 | nom = models.CharField(max_length=60,blank=False) 8 | prenoms = models.CharField(max_length=60,blank=False) 9 | username = models.CharField(max_length=60,blank=False,default="user") 10 | date_naissance = models.DateField() 11 | sexe = models.CharField(max_length=20) 12 | email = models.EmailField(max_length=254) 13 | pays = models.CharField(max_length=60) 14 | ville = models.CharField(max_length=20) 15 | solde = models.DecimalField(max_digits=10, decimal_places=2,default=True) 16 | numero = models.CharField(max_length=20) 17 | password = models.CharField(max_length=100,blank=False) 18 | 19 | def __str__(self): 20 | return self.username 21 | 22 | 23 | class Depot(models.Model): 24 | Utilisateur = models.ForeignKey(Utilisateur, on_delete=models.CASCADE) 25 | operateur = models.CharField(max_length=20) 26 | numero = models.CharField(max_length=20) 27 | depot_date = models.DateTimeField(default=timezone.now) 28 | Montant_depot = models.DecimalField(max_digits=10, decimal_places=2,default=False) 29 | 30 | class Retrait(models.Model): 31 | Utilisateur = models.ForeignKey(Utilisateur, on_delete=models.CASCADE) 32 | operateur = models.CharField(max_length=20) 33 | numero = models.CharField(max_length=20) 34 | retrait_date = models.DateTimeField(default=timezone.now) 35 | Montant_retrait = models.DecimalField(max_digits=10, decimal_places=2,default=False) 36 | 37 | 38 | class Historique(models.Model): 39 | Utilisateur = models.ForeignKey(Utilisateur, on_delete=models.CASCADE) 40 | Transaction = models.CharField(max_length=20) 41 | date = models.DateTimeField(default=timezone.now) 42 | Montant= models.DecimalField(max_digits=10, decimal_places=2,default=False) 43 | operateur = models.CharField(max_length=20) 44 | numero = models.CharField(max_length=20) 45 | 46 | 47 | class Categorie(models.Model): 48 | nom_cate=models.CharField(max_length=20) 49 | def __str__(self): 50 | return self.nom_cate 51 | 52 | class Championat(models.Model): 53 | Categorie = models.ForeignKey(Categorie, on_delete=models.CASCADE) 54 | nom_cha = models.CharField(max_length=20) 55 | def __str__(self): 56 | return self.nom_cha 57 | 58 | class Equipe(models.Model): 59 | Championat = models.ForeignKey(Championat, on_delete=models.CASCADE) 60 | nom_Equipe = models.CharField(max_length=20) 61 | def __str__(self): 62 | return str(self.nom_Equipe) 63 | 64 | class Match(models.Model): 65 | equipe_1 = models.ForeignKey(Equipe, on_delete=models.CASCADE,related_name='equipe_1') 66 | equipe_2 = models.ForeignKey(Equipe, on_delete=models.CASCADE) 67 | date = models.DateField() 68 | heure = models.TimeField() 69 | v1=models.DecimalField(max_digits=10, decimal_places=2,default=False) 70 | v2=models.DecimalField(max_digits=10, decimal_places=2,default=False) 71 | x=models.DecimalField(max_digits=10, decimal_places=2,default=False) 72 | Championat = models.ForeignKey(Championat, on_delete=models.CASCADE) 73 | Categorie = models.ForeignKey(Categorie, on_delete=models.CASCADE) 74 | def __str__(self): 75 | return str(self.equipe_1)+" vs "+str(self.equipe_2) 76 | 77 | 78 | # Item == Match 79 | # choixMatch( = OrderItem 80 | # Order = Paris 81 | 82 | class choixMatch(models.Model): 83 | Utilisateur = models.ForeignKey(Utilisateur, on_delete=models.CASCADE) 84 | match = models.CharField(max_length=60) 85 | ordered = models.BooleanField(default=False) 86 | equipe = models.CharField(max_length=20) 87 | cote = models.DecimalField(max_digits=10, decimal_places=2,default=False) 88 | def __str__(self): 89 | return str(self.match) 90 | 91 | class Paris(models.Model): 92 | Utilisateur = models.ForeignKey(Utilisateur, on_delete=models.CASCADE) 93 | ref_code = models.CharField(max_length=20, blank=True, null=True) 94 | selection = models.ManyToManyField(choixMatch) 95 | coteTotal = models.DecimalField(max_digits=10, decimal_places=2,default=False) 96 | Mise=models.DecimalField(max_digits=10, decimal_places=2,default=False) 97 | Gain=models.DecimalField(max_digits=10, decimal_places=2,default=False) 98 | statut=models.CharField(max_length=20) -------------------------------------------------------------------------------- /src/inscription/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /src/inscription/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render, redirect,get_object_or_404 2 | from .forms import registerForm,DepotForm 3 | from django.urls import reverse 4 | from .models import Utilisateur,Depot,Retrait,Historique,Match,choixMatch,Paris 5 | from django.http import HttpResponse,FileResponse,JsonResponse 6 | from django.contrib import messages 7 | from django.views.generic import View 8 | from django.core.paginator import Paginator 9 | from django.db.models import Sum 10 | import json 11 | 12 | def inscription_view(request): 13 | nomut= request.POST.get('Nom') 14 | prenomsut = request.POST.get('Prenoms') 15 | date_naissanceut = request.POST.get('Naissance') 16 | sexeut = request.POST.get('sexe') 17 | emailut = request.POST.get('mail') 18 | paysut = request.POST.get('pays') 19 | villeut = request.POST.get('Ville') 20 | numerout = request.POST.get('Numero') 21 | passwordut = request.POST.get('password') 22 | passwordut2 = request.POST.get('password2') 23 | pseudout=request.POST.get('Pseudo') 24 | text = "" 25 | if request.method == "POST": 26 | if paysut == "" or sexeut == "" or pseudout == "" or nomut == "" or prenomsut == "" or date_naissanceut == "" or emailut == "" or numerout == "" or villeut == "" or passwordut == "" or passwordut2 == "" : 27 | messages.warning(request, "Veillez Remplie correctement tous les champs SVP") 28 | elif passwordut != passwordut2: 29 | text = " les deux mots de passe ne sont pas identiques " 30 | else: 31 | Utilisateur.objects.create(nom=nomut,prenoms=prenomsut,date_naissance=date_naissanceut ,sexe=sexeut,email=emailut,pays=paysut,ville=villeut,numero=numerout,password=passwordut,username=pseudout) 32 | messages.success(request, ' Félicitation Votre compte à été crée avec succès !!!') 33 | 34 | context = { 35 | 'error' : text 36 | } 37 | return render(request,"inscription.html",context) 38 | 39 | 40 | def connexion_view(request): 41 | mail=request.POST.get('username') 42 | mdp=request.POST.get('password') 43 | queryset=Utilisateur.objects.all() 44 | users = queryset 45 | context = {} 46 | if request.method == "POST": 47 | for user in users: 48 | usermail=user.email 49 | userpass=user.password 50 | userid=user.id 51 | username=user.nom 52 | usersolde= int(user.solde) 53 | userprenom=user.prenoms 54 | userpseudo=user.username 55 | if usermail==mail and userpass==mdp: 56 | request.session['id'] = userid 57 | request.session['username'] = username 58 | request.session['usersolde'] = usersolde 59 | request.session['userprenom'] = userprenom 60 | request.session['pseudo'] = userpseudo 61 | return redirect('principal') 62 | else: 63 | messages.warning(request, ' Email ou mot de pass incorrecte ') 64 | print(usermail,userpass,userid) 65 | return render(request,'connexion/connexion.html',context) 66 | 67 | 68 | def principal_view(request): 69 | if request.session.has_key('id'): 70 | userid=request.session['id'] 71 | p=Utilisateur.objects.get(pk=userid) 72 | solde = int(p.solde) 73 | pseudo = p.username 74 | context= { 75 | "id": userid, 76 | "solde":solde, 77 | "pseudo":pseudo 78 | } 79 | return render(request,"principal/principal.html",context) 80 | else: 81 | return redirect('login') 82 | 83 | 84 | def logout(request): 85 | try: 86 | del request.session['id'] 87 | del request.session['username'] 88 | del request.session['usersolde'] 89 | del request.session['userprenom'] 90 | except: 91 | pass 92 | return redirect('home') 93 | 94 | def retrait_view(request): 95 | if request.session.has_key('id'): 96 | userid=request.session['id'] 97 | nom=request.session['username'] 98 | prenoms=request.session['userprenom'] 99 | solde=request.session['usersolde'] 100 | pseudo=request.session['pseudo'] 101 | p=Utilisateur.objects.get(pk=userid) 102 | solde = int(p.solde) 103 | pseudo = p.username 104 | operateur=request.POST.get('operateur') 105 | Numero=request.POST.get('numero') 106 | montant= request.POST.get('montant') 107 | context= { 108 | "id": userid, 109 | "nom": nom, 110 | "prenoms": prenoms, 111 | "solde":solde, 112 | "pseudo":pseudo 113 | } 114 | if request.method == "POST": 115 | nouveausolde = 0 116 | if operateur == "" or Numero == "" or montant == "": 117 | messages.warning(request, 'Remplie correctement les champs') 118 | elif int(montant) >= solde : 119 | messages.warning(request, 'Desolé Vous ne disposer de d\' assez de fond pour effectuer cette transaction') 120 | else: 121 | operation = "Retrait" 122 | nouveausolde = solde - int(montant) 123 | p = Utilisateur.objects.get(pk=userid) 124 | p.solde = nouveausolde 125 | p.save() 126 | Retrait.objects.create(Utilisateur_id=userid,Montant_retrait=montant,numero=Numero,operateur=operateur) 127 | Historique.objects.create(Utilisateur_id=userid,Transaction=operation,Montant=montant,numero=Numero,operateur=operateur) 128 | messages.success(request, ' Votre Retrait de '+montant+" a été effectuer Avec Succés Votre Nouveau solde est de "+str(nouveausolde)) 129 | return redirect('principal') 130 | return render(request,"principal/retrait.html",context) 131 | else: 132 | return redirect('login') 133 | 134 | def depot_view(request): 135 | if request.session.has_key('id'): 136 | userid=request.session['id'] 137 | nom=request.session['username'] 138 | prenoms=request.session['userprenom'] 139 | solde=request.session['usersolde'] 140 | pseudo=request.session['pseudo'] 141 | p=Utilisateur.objects.get(pk=userid) 142 | solde = int(p.solde) 143 | pseudo = p.username 144 | operateur=request.POST.get('operateur') 145 | Numero=request.POST.get('Numero') 146 | montant= request.POST.get('montant') 147 | context= { 148 | "id": userid, 149 | "nom": nom, 150 | "solde":solde, 151 | "pseudo":pseudo 152 | } 153 | if request.method == "POST": 154 | nouveausolde = 0 155 | if operateur == "" or Numero == "" or montant == "": 156 | messages.warning(request, 'Remplie correctement les champs') 157 | else: 158 | nouveausolde = solde + int(montant) 159 | operation = "depôt" 160 | p = Utilisateur.objects.get(pk=userid) 161 | p.solde = nouveausolde 162 | p.save() 163 | Depot.objects.create(Utilisateur_id=userid,Montant_depot=montant,numero=Numero,operateur=operateur) 164 | Historique.objects.create(Utilisateur_id=userid,Transaction=operation,Montant=montant,numero=Numero,operateur=operateur) 165 | messages.success(request, ' Votre Depôt de '+montant+" a été effectuer Avec Succés Votre Nouveau solde est de "+str(nouveausolde)) 166 | return redirect('principal') 167 | return render(request,"principal/depot.html",context) 168 | 169 | else: 170 | return redirect('login') 171 | 172 | def historique_view(request): 173 | if request.session.has_key('id'): 174 | userid=request.session['id'] 175 | p=Utilisateur.objects.get(pk=userid) 176 | solde = int(p.solde) 177 | pseudo = p.username 178 | h=Historique.objects.filter(Utilisateur_id=userid) 179 | histo=h 180 | context= { 181 | "id": userid, 182 | "solde":solde, 183 | "pseudo":pseudo, 184 | "histo": histo 185 | } 186 | return render(request,"principal/historique.html", context) 187 | else: 188 | return redirect('login') 189 | 190 | def match_view(request,idcat): 191 | if request.session.has_key('id'): 192 | userid=request.session['id'] 193 | p=Utilisateur.objects.get(pk=userid) 194 | solde = int(p.solde) 195 | pseudo = p.username 196 | r = Match.objects.filter(Categorie_id=idcat).order_by('date') 197 | liste = r 198 | for t in liste: 199 | p = t 200 | numpage = Paginator(liste,4) 201 | page = request.GET.get('page') 202 | liste = numpage.get_page(page) 203 | context= { 204 | "id": userid, 205 | "solde":solde, 206 | "pseudo":pseudo, 207 | "liste":liste, 208 | "Categorie":p.Categorie, 209 | } 210 | return render(request,"principal/jeux.html", context) 211 | else: 212 | return redirect('login') 213 | 214 | 215 | def cart_create(request): 216 | if request.session.has_key('id'): 217 | userid=request.session['id'] 218 | p=Utilisateur.objects.get(pk=userid) 219 | solde = int(p.solde) 220 | pseudo = p.username 221 | idmatch = request.GET.get('idmatch') 222 | match= request.GET.get('match') 223 | paris = request.GET.get('paris') 224 | coteequip = request.GET.get('coteequip') 225 | print(idmatch,match,paris,coteequip,userid) 226 | choixMatch.objects.create(Utilisateur_id=userid,equipe=paris,cote=coteequip, match=match) 227 | 228 | 229 | return JsonResponse({'status': 'OK'}) 230 | else: 231 | return redirect('login') 232 | 233 | def cartlist(request): 234 | if request.session.has_key('id'): 235 | userid=request.session['id'] 236 | p=Utilisateur.objects.get(pk=userid) 237 | solde = int(p.solde) 238 | pseudo = p.username 239 | liste = list(choixMatch.objects.filter(Utilisateur_id=userid).values()) 240 | data = dict() 241 | data['liste'] = liste 242 | return JsonResponse(data) 243 | else: 244 | return redirect('login') 245 | 246 | def cartDelete(request, pk): 247 | if request.session.has_key('id'): 248 | userid=request.session['id'] 249 | p=Utilisateur.objects.get(pk=userid) 250 | solde = int(p.solde) 251 | pseudo = p.username 252 | data = dict() 253 | room = choixMatch.objects.get(pk=pk) 254 | if room: 255 | room.delete() 256 | data['message'] = "Match Suprimer!" 257 | else: 258 | data['message'] = "Error!" 259 | return JsonResponse(data) 260 | else: 261 | return redirect('login') 262 | 263 | def panier(request): 264 | if request.session.has_key('id'): 265 | userid=request.session['id'] 266 | p=Utilisateur.objects.get(pk=userid) 267 | solde = int(p.solde) 268 | pseudo = p.username 269 | h=Historique.objects.filter(Utilisateur_id=userid) 270 | histo=h 271 | coteTotal = choixMatch.objects.filter(Utilisateur_id=userid).aggregate(Sum('cote')) 272 | toi =coteTotal['cote__sum'] 273 | mise=request.POST.get('mise') 274 | print(coteTotal,toi) 275 | context= { 276 | "id": userid, 277 | "solde":solde, 278 | "pseudo":pseudo, 279 | "histo": histo, 280 | "coteTotal":toi 281 | } 282 | if request.method == "POST": 283 | nouveausolde = 0 284 | if mise == "" : 285 | messages.warning(request, 'Saisir Votre Mise') 286 | elif int(mise) > solde : 287 | messages.warning(request, 'Fonds inssufisant Votre solde est inferieur à Votre mise') 288 | else: 289 | nouveausolde = solde - int(mise) 290 | Gain = int(mise) * float(toi) 291 | ref_code = "00254" 292 | statut = "en cours" 293 | selection = choixMatch.objects.filter(Utilisateur_id=userid) 294 | p = Utilisateur.objects.get(pk=userid) 295 | p.solde = nouveausolde 296 | p.save() 297 | instance = Paris.objects.create(selection=selection) 298 | Paris.objects.create(Utilisateur_id=userid,coteTotal=coteTotal,Mise=mise,Gain= Gain,ref_code=ref_code ,selection=selection,statut=statut) 299 | messages.success(request, ' Votre paris '+mise+" a été effectuer Avec Succés Votre Nouveau Gain potentiel est de "+str(Gain)) 300 | return render(request,"principal/panier.html", context) 301 | else: 302 | return redirect('login') 303 | -------------------------------------------------------------------------------- /src/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | """Django's command-line utility for administrative tasks.""" 3 | import os 4 | import sys 5 | 6 | 7 | def main(): 8 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Juillet.settings') 9 | try: 10 | from django.core.management import execute_from_command_line 11 | except ImportError as exc: 12 | raise ImportError( 13 | "Couldn't import Django. Are you sure it's installed and " 14 | "available on your PYTHONPATH environment variable? Did you " 15 | "forget to activate a virtual environment?" 16 | ) from exc 17 | execute_from_command_line(sys.argv) 18 | 19 | 20 | if __name__ == '__main__': 21 | main() 22 | -------------------------------------------------------------------------------- /src/paris_sport.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.8.4 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Hôte : 127.0.0.1:3306 6 | -- Généré le : ven. 02 août 2019 à 13:09 7 | -- Version du serveur : 5.7.24 8 | -- Version de PHP : 7.2.14 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET AUTOCOMMIT = 0; 12 | START TRANSACTION; 13 | SET time_zone = "+00:00"; 14 | 15 | 16 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 17 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 18 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 19 | /*!40101 SET NAMES utf8mb4 */; 20 | 21 | -- 22 | -- Base de données : `paris_sport` 23 | -- 24 | 25 | -- -------------------------------------------------------- 26 | 27 | -- 28 | -- Structure de la table `auth_group` 29 | -- 30 | 31 | DROP TABLE IF EXISTS `auth_group`; 32 | CREATE TABLE IF NOT EXISTS `auth_group` ( 33 | `id` int(11) NOT NULL AUTO_INCREMENT, 34 | `name` varchar(150) NOT NULL, 35 | PRIMARY KEY (`id`), 36 | UNIQUE KEY `name` (`name`) 37 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 38 | 39 | -- -------------------------------------------------------- 40 | 41 | -- 42 | -- Structure de la table `auth_group_permissions` 43 | -- 44 | 45 | DROP TABLE IF EXISTS `auth_group_permissions`; 46 | CREATE TABLE IF NOT EXISTS `auth_group_permissions` ( 47 | `id` int(11) NOT NULL AUTO_INCREMENT, 48 | `group_id` int(11) NOT NULL, 49 | `permission_id` int(11) NOT NULL, 50 | PRIMARY KEY (`id`), 51 | UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`), 52 | KEY `auth_group_permissions_group_id_b120cbf9` (`group_id`), 53 | KEY `auth_group_permissions_permission_id_84c5c92e` (`permission_id`) 54 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 55 | 56 | -- -------------------------------------------------------- 57 | 58 | -- 59 | -- Structure de la table `auth_permission` 60 | -- 61 | 62 | DROP TABLE IF EXISTS `auth_permission`; 63 | CREATE TABLE IF NOT EXISTS `auth_permission` ( 64 | `id` int(11) NOT NULL AUTO_INCREMENT, 65 | `name` varchar(255) NOT NULL, 66 | `content_type_id` int(11) NOT NULL, 67 | `codename` varchar(100) NOT NULL, 68 | PRIMARY KEY (`id`), 69 | UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`), 70 | KEY `auth_permission_content_type_id_2f476e4b` (`content_type_id`) 71 | ) ENGINE=MyISAM AUTO_INCREMENT=101 DEFAULT CHARSET=utf8; 72 | 73 | -- 74 | -- Déchargement des données de la table `auth_permission` 75 | -- 76 | 77 | INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES 78 | (1, 'Can add log entry', 1, 'add_logentry'), 79 | (2, 'Can change log entry', 1, 'change_logentry'), 80 | (3, 'Can delete log entry', 1, 'delete_logentry'), 81 | (4, 'Can view log entry', 1, 'view_logentry'), 82 | (5, 'Can add permission', 2, 'add_permission'), 83 | (6, 'Can change permission', 2, 'change_permission'), 84 | (7, 'Can delete permission', 2, 'delete_permission'), 85 | (8, 'Can view permission', 2, 'view_permission'), 86 | (9, 'Can add group', 3, 'add_group'), 87 | (10, 'Can change group', 3, 'change_group'), 88 | (11, 'Can delete group', 3, 'delete_group'), 89 | (12, 'Can view group', 3, 'view_group'), 90 | (13, 'Can add user', 4, 'add_user'), 91 | (14, 'Can change user', 4, 'change_user'), 92 | (15, 'Can delete user', 4, 'delete_user'), 93 | (16, 'Can view user', 4, 'view_user'), 94 | (17, 'Can add content type', 5, 'add_contenttype'), 95 | (18, 'Can change content type', 5, 'change_contenttype'), 96 | (19, 'Can delete content type', 5, 'delete_contenttype'), 97 | (20, 'Can view content type', 5, 'view_contenttype'), 98 | (21, 'Can add session', 6, 'add_session'), 99 | (22, 'Can change session', 6, 'change_session'), 100 | (23, 'Can delete session', 6, 'delete_session'), 101 | (24, 'Can view session', 6, 'view_session'), 102 | (25, 'Can add landing page', 7, 'add_landingpage'), 103 | (26, 'Can change landing page', 7, 'change_landingpage'), 104 | (27, 'Can delete landing page', 7, 'delete_landingpage'), 105 | (28, 'Can view landing page', 7, 'view_landingpage'), 106 | (29, 'Can add layout', 8, 'add_layout'), 107 | (30, 'Can change layout', 8, 'change_layout'), 108 | (31, 'Can delete layout', 8, 'delete_layout'), 109 | (32, 'Can view layout', 8, 'view_layout'), 110 | (33, 'Can add portfolio part', 9, 'add_portfoliopart'), 111 | (34, 'Can change portfolio part', 9, 'change_portfoliopart'), 112 | (35, 'Can delete portfolio part', 9, 'delete_portfoliopart'), 113 | (36, 'Can view portfolio part', 9, 'view_portfoliopart'), 114 | (37, 'Can add pricing part', 10, 'add_pricingpart'), 115 | (38, 'Can change pricing part', 10, 'change_pricingpart'), 116 | (39, 'Can delete pricing part', 10, 'delete_pricingpart'), 117 | (40, 'Can view pricing part', 10, 'view_pricingpart'), 118 | (41, 'Can add service part', 11, 'add_servicepart'), 119 | (42, 'Can change service part', 11, 'change_servicepart'), 120 | (43, 'Can delete service part', 11, 'delete_servicepart'), 121 | (44, 'Can view service part', 11, 'view_servicepart'), 122 | (45, 'Can add testimonial part', 12, 'add_testimonialpart'), 123 | (46, 'Can change testimonial part', 12, 'change_testimonialpart'), 124 | (47, 'Can delete testimonial part', 12, 'delete_testimonialpart'), 125 | (48, 'Can view testimonial part', 12, 'view_testimonialpart'), 126 | (49, 'Can add kv store', 13, 'add_kvstore'), 127 | (50, 'Can change kv store', 13, 'change_kvstore'), 128 | (51, 'Can delete kv store', 13, 'delete_kvstore'), 129 | (52, 'Can view kv store', 13, 'view_kvstore'), 130 | (53, 'Can add utilisateur', 14, 'add_utilisateur'), 131 | (54, 'Can change utilisateur', 14, 'change_utilisateur'), 132 | (55, 'Can delete utilisateur', 14, 'delete_utilisateur'), 133 | (56, 'Can view utilisateur', 14, 'view_utilisateur'), 134 | (57, 'Can add retrait', 15, 'add_retrait'), 135 | (58, 'Can change retrait', 15, 'change_retrait'), 136 | (59, 'Can delete retrait', 15, 'delete_retrait'), 137 | (60, 'Can view retrait', 15, 'view_retrait'), 138 | (61, 'Can add depot', 16, 'add_depot'), 139 | (62, 'Can change depot', 16, 'change_depot'), 140 | (63, 'Can delete depot', 16, 'delete_depot'), 141 | (64, 'Can view depot', 16, 'view_depot'), 142 | (65, 'Can add historique', 17, 'add_historique'), 143 | (66, 'Can change historique', 17, 'change_historique'), 144 | (67, 'Can delete historique', 17, 'delete_historique'), 145 | (68, 'Can view historique', 17, 'view_historique'), 146 | (69, 'Can add championat', 18, 'add_championat'), 147 | (70, 'Can change championat', 18, 'change_championat'), 148 | (71, 'Can delete championat', 18, 'delete_championat'), 149 | (72, 'Can view championat', 18, 'view_championat'), 150 | (73, 'Can add categorie', 19, 'add_categorie'), 151 | (74, 'Can change categorie', 19, 'change_categorie'), 152 | (75, 'Can delete categorie', 19, 'delete_categorie'), 153 | (76, 'Can view categorie', 19, 'view_categorie'), 154 | (77, 'Can add equipe', 20, 'add_equipe'), 155 | (78, 'Can change equipe', 20, 'change_equipe'), 156 | (79, 'Can delete equipe', 20, 'delete_equipe'), 157 | (80, 'Can view equipe', 20, 'view_equipe'), 158 | (81, 'Can add match', 21, 'add_match'), 159 | (82, 'Can change match', 21, 'change_match'), 160 | (83, 'Can delete match', 21, 'delete_match'), 161 | (84, 'Can view match', 21, 'view_match'), 162 | (85, 'Can add tickets', 22, 'add_tickets'), 163 | (86, 'Can change tickets', 22, 'change_tickets'), 164 | (87, 'Can delete tickets', 22, 'delete_tickets'), 165 | (88, 'Can view tickets', 22, 'view_tickets'), 166 | (89, 'Can add paris', 23, 'add_paris'), 167 | (90, 'Can change paris', 23, 'change_paris'), 168 | (91, 'Can delete paris', 23, 'delete_paris'), 169 | (92, 'Can view paris', 23, 'view_paris'), 170 | (93, 'Can add choix', 24, 'add_choix'), 171 | (94, 'Can change choix', 24, 'change_choix'), 172 | (95, 'Can delete choix', 24, 'delete_choix'), 173 | (96, 'Can view choix', 24, 'view_choix'), 174 | (97, 'Can add choix match', 25, 'add_choixmatch'), 175 | (98, 'Can change choix match', 25, 'change_choixmatch'), 176 | (99, 'Can delete choix match', 25, 'delete_choixmatch'), 177 | (100, 'Can view choix match', 25, 'view_choixmatch'); 178 | 179 | -- -------------------------------------------------------- 180 | 181 | -- 182 | -- Structure de la table `auth_user` 183 | -- 184 | 185 | DROP TABLE IF EXISTS `auth_user`; 186 | CREATE TABLE IF NOT EXISTS `auth_user` ( 187 | `id` int(11) NOT NULL AUTO_INCREMENT, 188 | `password` varchar(128) NOT NULL, 189 | `last_login` datetime(6) DEFAULT NULL, 190 | `is_superuser` tinyint(1) NOT NULL, 191 | `username` varchar(150) NOT NULL, 192 | `first_name` varchar(30) NOT NULL, 193 | `last_name` varchar(150) NOT NULL, 194 | `email` varchar(254) NOT NULL, 195 | `is_staff` tinyint(1) NOT NULL, 196 | `is_active` tinyint(1) NOT NULL, 197 | `date_joined` datetime(6) NOT NULL, 198 | PRIMARY KEY (`id`), 199 | UNIQUE KEY `username` (`username`) 200 | ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; 201 | 202 | -- 203 | -- Déchargement des données de la table `auth_user` 204 | -- 205 | 206 | INSERT INTO `auth_user` (`id`, `password`, `last_login`, `is_superuser`, `username`, `first_name`, `last_name`, `email`, `is_staff`, `is_active`, `date_joined`) VALUES 207 | (1, 'pbkdf2_sha256$150000$wUVbjSP0PHsu$uVHwdq3Lz2vLu+JiOYlhBdWu9YiYKK17t7tdWUz0SX0=', '2019-07-23 09:57:52.000000', 1, 'guindo', 'Guindo', 'Mahamadou', 'mohamedsaros@gmail.com', 1, 1, '2019-07-23 09:56:07.000000'), 208 | (2, 'pbkdf2_sha256$150000$2oe4RuD0qRJI$NPLmXEwDuNapYfoc1HSIC6nVPl3wEAJHcuzKW8W00uU=', '2019-07-25 02:00:33.690429', 1, 'momo', '', '', 'guindo_mohamed@hotmail.com', 1, 1, '2019-07-25 01:41:09.856445'); 209 | 210 | -- -------------------------------------------------------- 211 | 212 | -- 213 | -- Structure de la table `auth_user_groups` 214 | -- 215 | 216 | DROP TABLE IF EXISTS `auth_user_groups`; 217 | CREATE TABLE IF NOT EXISTS `auth_user_groups` ( 218 | `id` int(11) NOT NULL AUTO_INCREMENT, 219 | `user_id` int(11) NOT NULL, 220 | `group_id` int(11) NOT NULL, 221 | PRIMARY KEY (`id`), 222 | UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`), 223 | KEY `auth_user_groups_user_id_6a12ed8b` (`user_id`), 224 | KEY `auth_user_groups_group_id_97559544` (`group_id`) 225 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 226 | 227 | -- -------------------------------------------------------- 228 | 229 | -- 230 | -- Structure de la table `auth_user_user_permissions` 231 | -- 232 | 233 | DROP TABLE IF EXISTS `auth_user_user_permissions`; 234 | CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` ( 235 | `id` int(11) NOT NULL AUTO_INCREMENT, 236 | `user_id` int(11) NOT NULL, 237 | `permission_id` int(11) NOT NULL, 238 | PRIMARY KEY (`id`), 239 | UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`), 240 | KEY `auth_user_user_permissions_user_id_a95ead1b` (`user_id`), 241 | KEY `auth_user_user_permissions_permission_id_1fbb5f2c` (`permission_id`) 242 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 243 | 244 | -- -------------------------------------------------------- 245 | 246 | -- 247 | -- Structure de la table `django_admin_log` 248 | -- 249 | 250 | DROP TABLE IF EXISTS `django_admin_log`; 251 | CREATE TABLE IF NOT EXISTS `django_admin_log` ( 252 | `id` int(11) NOT NULL AUTO_INCREMENT, 253 | `action_time` datetime(6) NOT NULL, 254 | `object_id` longtext, 255 | `object_repr` varchar(200) NOT NULL, 256 | `action_flag` smallint(5) UNSIGNED NOT NULL, 257 | `change_message` longtext NOT NULL, 258 | `content_type_id` int(11) DEFAULT NULL, 259 | `user_id` int(11) NOT NULL, 260 | PRIMARY KEY (`id`), 261 | KEY `django_admin_log_content_type_id_c4bce8eb` (`content_type_id`), 262 | KEY `django_admin_log_user_id_c564eba6` (`user_id`) 263 | ) ENGINE=MyISAM AUTO_INCREMENT=218 DEFAULT CHARSET=utf8; 264 | 265 | -- 266 | -- Déchargement des données de la table `django_admin_log` 267 | -- 268 | 269 | INSERT INTO `django_admin_log` (`id`, `action_time`, `object_id`, `object_repr`, `action_flag`, `change_message`, `content_type_id`, `user_id`) VALUES 270 | (1, '2019-07-23 09:58:46.889648', '1', 'guindo', 2, '[{\"changed\": {\"fields\": [\"first_name\", \"last_name\"]}}]', 4, 1), 271 | (2, '2019-07-23 15:14:58.400390', '1', 'sport', 1, '[{\"added\": {}}]', 8, 1), 272 | (3, '2019-07-23 15:15:07.227539', '1', 'Landing page for paris-sportifs', 1, '[{\"added\": {}}]', 7, 1), 273 | (4, '2019-07-23 15:24:12.048828', '1', 'Landing page for paris-sportifs', 3, '', 7, 1), 274 | (5, '2019-07-23 15:29:20.141601', '1', 'footbaal', 1, '[{\"added\": {}}]', 11, 1), 275 | (6, '2019-07-23 15:29:31.574218', '2', 'Landing page for sport', 1, '[{\"added\": {}}]', 7, 1), 276 | (7, '2019-07-24 20:02:55.078125', '8', 'mohamedsaros@gmail.com', 3, '', 14, 1), 277 | (8, '2019-07-24 20:02:55.149414', '7', 'mohamedsaros@gmail.com', 3, '', 14, 1), 278 | (9, '2019-07-24 20:02:55.165039', '6', 'mohamedsaros@gmail.com', 3, '', 14, 1), 279 | (10, '2019-07-24 20:02:55.169921', '5', 'ggggfgfg', 3, '', 14, 1), 280 | (11, '2019-07-24 20:02:55.172851', '4', 'ggggfgfg', 3, '', 14, 1), 281 | (12, '2019-07-24 20:02:55.175781', '3', 'ggggfgfg', 3, '', 14, 1), 282 | (13, '2019-07-24 20:02:55.178710', '2', 'test@test.ci', 3, '', 14, 1), 283 | (14, '2019-07-24 20:16:13.746093', '9', '', 3, '', 14, 1), 284 | (15, '2019-07-24 20:22:45.552734', '11', '', 3, '', 14, 1), 285 | (16, '2019-07-24 20:22:45.555664', '10', '', 3, '', 14, 1), 286 | (17, '2019-07-24 20:34:45.327148', '14', '', 3, '', 14, 1), 287 | (18, '2019-07-24 20:34:45.330078', '13', 'mohamedsaros@gmail.com', 3, '', 14, 1), 288 | (19, '2019-07-24 20:34:45.333984', '12', '', 3, '', 14, 1), 289 | (20, '2019-07-25 08:56:48.604492', '16', 'yasmine@hoymail.com', 2, '[{\"changed\": {\"fields\": [\"password\"]}}]', 14, 2), 290 | (21, '2019-07-25 10:08:05.190429', '18', ',k,kf,fk,', 3, '', 14, 2), 291 | (22, '2019-07-25 10:08:05.230468', '17', ',k,kf,fk,', 3, '', 14, 2), 292 | (23, '2019-07-25 10:30:59.178710', '15', 'test@test.ci', 2, '[{\"changed\": {\"fields\": [\"password\"]}}]', 14, 2), 293 | (24, '2019-07-26 04:04:58.575195', '15', 'test@test.ci', 2, '[{\"changed\": {\"fields\": [\"nom\", \"prenoms\"]}}]', 14, 2), 294 | (25, '2019-07-26 13:20:03.141601', '19', 'Saros94', 2, '[{\"changed\": {\"fields\": [\"solde\"]}}]', 14, 2), 295 | (26, '2019-07-29 01:53:15.323968', '1', 'Football', 1, '[{\"added\": {}}]', 19, 2), 296 | (27, '2019-07-29 01:53:31.805414', '2', 'Basket', 1, '[{\"added\": {}}]', 19, 2), 297 | (28, '2019-07-29 01:54:04.656000', '3', 'Hockey', 1, '[{\"added\": {}}]', 19, 2), 298 | (29, '2019-07-29 11:58:17.532226', '1', 'Ligue 1', 1, '[{\"added\": {}}]', 18, 2), 299 | (30, '2019-07-29 11:58:44.520507', '2', 'Premier League', 1, '[{\"added\": {}}]', 18, 2), 300 | (31, '2019-07-29 11:59:21.977539', '3', 'Liga', 1, '[{\"added\": {}}]', 18, 2), 301 | (32, '2019-07-29 11:59:22.295898', '4', 'Liga', 1, '[{\"added\": {}}]', 18, 2), 302 | (33, '2019-07-29 11:59:37.011718', '4', 'Liga', 3, '', 18, 2), 303 | (34, '2019-07-29 11:59:49.382812', '5', 'Serie A', 1, '[{\"added\": {}}]', 18, 2), 304 | (35, '2019-07-29 12:00:25.387695', '6', 'Bundesliga', 1, '[{\"added\": {}}]', 18, 2), 305 | (36, '2019-07-29 12:01:19.276367', '7', 'Jupiler League.', 1, '[{\"added\": {}}]', 18, 2), 306 | (37, '2019-07-29 12:09:14.142578', '8', 'NBA', 1, '[{\"added\": {}}]', 18, 2), 307 | (38, '2019-07-29 12:10:32.831054', '9', 'MLB', 1, '[{\"added\": {}}]', 18, 2), 308 | (39, '2019-07-29 12:13:23.231445', '10', 'LNH', 1, '[{\"added\": {}}]', 18, 2), 309 | (40, '2019-07-29 12:16:12.088867', '11', 'Nationale 1', 1, '[{\"added\": {}}]', 18, 2), 310 | (41, '2019-07-29 12:18:26.624023', '12', 'EuroBasket U18', 1, '[{\"added\": {}}]', 18, 2), 311 | (42, '2019-07-29 12:19:42.335937', '13', 'SHL', 1, '[{\"added\": {}}]', 18, 2), 312 | (43, '2019-07-29 12:21:38.129882', '2', 'Fc barcelone', 1, '[{\"added\": {}}]', 20, 2), 313 | (44, '2019-07-29 12:21:58.411132', '2', 'Fc barcelone', 3, '', 20, 2), 314 | (45, '2019-07-29 12:23:44.316406', '3', 'Real Madrid', 1, '[{\"added\": {}}]', 20, 2), 315 | (46, '2019-07-29 12:24:14.282226', '4', 'Fc seville', 1, '[{\"added\": {}}]', 20, 2), 316 | (47, '2019-07-29 12:24:30.493164', '5', 'Valence', 1, '[{\"added\": {}}]', 20, 2), 317 | (48, '2019-07-29 12:26:11.782226', '6', 'Ath. Bilbao', 1, '[{\"added\": {}}]', 20, 2), 318 | (49, '2019-07-29 12:26:33.390625', '7', 'Atl. Madrid', 1, '[{\"added\": {}}]', 20, 2), 319 | (50, '2019-07-29 12:26:57.343750', '8', 'Celta Vigo', 1, '[{\"added\": {}}]', 20, 2), 320 | (51, '2019-07-29 12:29:29.603515', '9', 'Leganes', 1, '[{\"added\": {}}]', 20, 2), 321 | (52, '2019-07-29 12:29:52.246093', '10', 'Levante', 1, '[{\"added\": {}}]', 20, 2), 322 | (53, '2019-07-29 12:30:44.303710', '11', 'Mallorca', 1, '[{\"added\": {}}]', 20, 2), 323 | (54, '2019-07-29 12:31:27.369140', '12', 'Osasuna', 1, '[{\"added\": {}}]', 20, 2), 324 | (55, '2019-07-29 13:28:52.684570', '16', 'Villarreal', 1, '[{\"added\": {}}]', 20, 2), 325 | (56, '2019-07-29 13:29:11.124023', '16', 'Villarreal', 3, '', 20, 2), 326 | (57, '2019-07-29 13:29:11.125976', '15', 'Villarreal', 3, '', 20, 2), 327 | (58, '2019-07-29 13:29:11.129882', '14', 'Villarreal', 3, '', 20, 2), 328 | (59, '2019-07-29 13:30:31.054687', '17', 'Arsenal', 1, '[{\"added\": {}}]', 20, 2), 329 | (60, '2019-07-29 13:30:54.170898', '18', 'Aston Villa', 1, '[{\"added\": {}}]', 20, 2), 330 | (61, '2019-07-29 13:31:48.898437', '19', 'Bournemouth', 1, '[{\"added\": {}}]', 20, 2), 331 | (62, '2019-07-29 13:32:13.767578', '20', 'Brighton', 1, '[{\"added\": {}}]', 20, 2), 332 | (63, '2019-07-29 13:32:34.238281', '21', 'Chelsea', 1, '[{\"added\": {}}]', 20, 2), 333 | (64, '2019-07-29 13:33:05.274414', '22', 'Crystal Palace', 1, '[{\"added\": {}}]', 20, 2), 334 | (65, '2019-07-29 13:33:45.810546', '23', 'Everton', 1, '[{\"added\": {}}]', 20, 2), 335 | (66, '2019-07-29 13:34:29.139648', '24', 'Leicester', 1, '[{\"added\": {}}]', 20, 2), 336 | (67, '2019-07-29 13:36:23.513671', '25', 'Liverpool', 1, '[{\"added\": {}}]', 20, 2), 337 | (68, '2019-07-29 13:37:02.446289', '26', 'Manchester City', 1, '[{\"added\": {}}]', 20, 2), 338 | (69, '2019-07-29 13:38:03.264648', '27', 'Tottenham', 1, '[{\"added\": {}}]', 20, 2), 339 | (70, '2019-07-29 13:39:07.387695', '28', 'Newcastle', 1, '[{\"added\": {}}]', 20, 2), 340 | (71, '2019-07-29 13:40:05.029296', '29', 'Norwich', 1, '[{\"added\": {}}]', 20, 2), 341 | (72, '2019-07-29 13:40:05.103515', '30', 'Norwich', 1, '[{\"added\": {}}]', 20, 2), 342 | (73, '2019-07-29 13:40:32.805664', '31', 'Manchester Utd', 1, '[{\"added\": {}}]', 20, 2), 343 | (74, '2019-07-29 13:41:48.749023', '32', 'Augsburg', 1, '[{\"added\": {}}]', 20, 2), 344 | (75, '2019-07-29 13:42:13.082031', '33', 'Bayern', 1, '[{\"added\": {}}]', 20, 2), 345 | (76, '2019-07-29 13:42:34.139648', '34', 'Dortmund', 1, '[{\"added\": {}}]', 20, 2), 346 | (77, '2019-07-29 13:42:50.765625', '35', 'Dusseldorf', 1, '[{\"added\": {}}]', 20, 2), 347 | (78, '2019-07-29 13:43:10.839843', '36', 'FC Koln', 1, '[{\"added\": {}}]', 20, 2), 348 | (79, '2019-07-29 13:43:31.159179', '37', 'Hoffenheim', 1, '[{\"added\": {}}]', 20, 2), 349 | (80, '2019-07-29 13:43:53.430664', '38', 'Freiburg', 1, '[{\"added\": {}}]', 20, 2), 350 | (81, '2019-07-29 13:44:11.560546', '39', 'Hertha', 1, '[{\"added\": {}}]', 20, 2), 351 | (82, '2019-07-29 13:44:28.090820', '40', 'Mainz', 1, '[{\"added\": {}}]', 20, 2), 352 | (83, '2019-07-29 13:44:49.075195', '41', 'Monchengladbach', 1, '[{\"added\": {}}]', 20, 2), 353 | (84, '2019-07-29 13:45:12.914062', '42', 'Paderborn', 1, '[{\"added\": {}}]', 20, 2), 354 | (85, '2019-07-29 13:48:56.380859', '43', 'RB Leipzig', 1, '[{\"added\": {}}]', 20, 2), 355 | (86, '2019-07-29 13:50:16.348632', '44', 'Schalke 04', 1, '[{\"added\": {}}]', 20, 2), 356 | (87, '2019-07-29 13:52:41.232421', '45', 'Amiens', 1, '[{\"added\": {}}]', 20, 2), 357 | (88, '2019-07-29 13:53:17.177734', '46', 'Angers', 1, '[{\"added\": {}}]', 20, 2), 358 | (89, '2019-07-29 13:54:07.358398', '47', 'Bordeaux', 1, '[{\"added\": {}}]', 20, 2), 359 | (90, '2019-07-29 13:54:44.461914', '48', 'Brest', 1, '[{\"added\": {}}]', 20, 2), 360 | (91, '2019-07-29 13:55:15.555664', '49', 'Dijon', 1, '[{\"added\": {}}]', 20, 2), 361 | (92, '2019-07-29 13:55:31.756835', '50', 'Lille', 1, '[{\"added\": {}}]', 20, 2), 362 | (93, '2019-07-29 13:56:29.463867', '51', 'Lyon', 1, '[{\"added\": {}}]', 20, 2), 363 | (94, '2019-07-29 13:56:51.670898', '52', 'Marseille', 1, '[{\"added\": {}}]', 20, 2), 364 | (95, '2019-07-29 13:57:10.692382', '53', 'Metz', 1, '[{\"added\": {}}]', 20, 2), 365 | (96, '2019-07-29 13:57:28.282226', '54', 'Monaco', 1, '[{\"added\": {}}]', 20, 2), 366 | (97, '2019-07-29 13:57:51.889648', '55', 'Montpellier', 1, '[{\"added\": {}}]', 20, 2), 367 | (98, '2019-07-29 13:58:05.713867', '56', 'Nantes', 1, '[{\"added\": {}}]', 20, 2), 368 | (99, '2019-07-29 13:58:25.125000', '57', 'Nice', 1, '[{\"added\": {}}]', 20, 2), 369 | (100, '2019-07-29 13:58:45.969726', '58', 'Nîmes', 1, '[{\"added\": {}}]', 20, 2), 370 | (101, '2019-07-29 13:59:39.608398', '59', 'PSG', 1, '[{\"added\": {}}]', 20, 2), 371 | (102, '2019-07-29 14:00:28.676757', '60', 'PSG', 1, '[{\"added\": {}}]', 20, 2), 372 | (103, '2019-07-29 14:01:18.812500', '61', 'Saint-Etienne', 1, '[{\"added\": {}}]', 20, 2), 373 | (104, '2019-07-29 14:02:30.299804', '62', 'AC Milan', 1, '[{\"added\": {}}]', 20, 2), 374 | (105, '2019-07-29 14:02:49.598632', '63', 'AS Rome', 1, '[{\"added\": {}}]', 20, 2), 375 | (106, '2019-07-29 14:03:40.778320', '64', 'Atalanta', 1, '[{\"added\": {}}]', 20, 2), 376 | (107, '2019-07-29 14:04:01.250000', '65', 'Bologne', 1, '[{\"added\": {}}]', 20, 2), 377 | (108, '2019-07-29 14:04:32.779296', '66', 'Chievo', 1, '[{\"added\": {}}]', 20, 2), 378 | (109, '2019-07-29 14:04:49.011718', '67', 'Empoli', 1, '[{\"added\": {}}]', 20, 2), 379 | (110, '2019-07-29 14:05:07.396484', '68', 'Fiorentina', 1, '[{\"added\": {}}]', 20, 2), 380 | (111, '2019-07-29 14:05:28.155273', '69', 'Frosinone', 1, '[{\"added\": {}}]', 20, 2), 381 | (112, '2019-07-29 14:05:47.714843', '70', 'Genoa', 1, '[{\"added\": {}}]', 20, 2), 382 | (113, '2019-07-29 14:06:04.363281', '71', 'Inter', 1, '[{\"added\": {}}]', 20, 2), 383 | (114, '2019-07-29 14:06:25.477539', '72', 'Juventus', 1, '[{\"added\": {}}]', 20, 2), 384 | (115, '2019-07-29 14:06:25.711914', '73', 'Juventus', 1, '[{\"added\": {}}]', 20, 2), 385 | (116, '2019-07-29 14:06:42.348632', '74', 'Lazio', 1, '[{\"added\": {}}]', 20, 2), 386 | (117, '2019-07-29 14:06:59.178710', '75', 'Naples', 1, '[{\"added\": {}}]', 20, 2), 387 | (118, '2019-07-29 14:07:14.874023', '76', 'Parme', 1, '[{\"added\": {}}]', 20, 2), 388 | (119, '2019-07-29 14:08:13.617187', '77', 'Sampdoria', 1, '[{\"added\": {}}]', 20, 2), 389 | (120, '2019-07-29 14:08:31.219726', '78', 'Sassuolo', 1, '[{\"added\": {}}]', 20, 2), 390 | (121, '2019-07-29 14:08:31.221679', '79', 'Sassuolo', 1, '[{\"added\": {}}]', 20, 2), 391 | (122, '2019-07-29 14:08:31.512695', '80', 'Sassuolo', 1, '[{\"added\": {}}]', 20, 2), 392 | (123, '2019-07-29 14:09:07.738281', '81', 'Torino', 1, '[{\"added\": {}}]', 20, 2), 393 | (124, '2019-07-29 14:09:31.916992', '80', 'Sassuolo', 3, '', 20, 2), 394 | (125, '2019-07-29 14:09:31.919921', '79', 'Sassuolo', 3, '', 20, 2), 395 | (126, '2019-07-29 14:09:31.922851', '78', 'Sassuolo', 3, '', 20, 2), 396 | (127, '2019-07-29 14:09:31.925781', '73', 'Juventus', 3, '', 20, 2), 397 | (128, '2019-07-29 14:17:08.346679', '69', 'Frosinone', 2, '[{\"changed\": {\"fields\": [\"Championat\"]}}]', 20, 2), 398 | (129, '2019-07-29 14:57:52.371093', '82', 'Anderlecht', 1, '[{\"added\": {}}]', 20, 2), 399 | (130, '2019-07-29 14:58:10.900390', '83', 'Antwerp', 1, '[{\"added\": {}}]', 20, 2), 400 | (131, '2019-07-29 14:58:24.780273', '84', 'Cercle Bruges', 1, '[{\"added\": {}}]', 20, 2), 401 | (132, '2019-07-29 14:58:45.074218', '85', 'Courtrai', 1, '[{\"added\": {}}]', 20, 2), 402 | (133, '2019-07-29 14:59:03.196289', '86', 'Eupen', 1, '[{\"added\": {}}]', 20, 2), 403 | (134, '2019-07-29 14:59:27.786132', '87', 'Genk', 1, '[{\"added\": {}}]', 20, 2), 404 | (135, '2019-07-29 14:59:43.540039', '88', 'La Gantoise', 1, '[{\"added\": {}}]', 20, 2), 405 | (136, '2019-07-29 14:59:58.348632', '89', 'Malines', 1, '[{\"added\": {}}]', 20, 2), 406 | (137, '2019-07-29 15:00:35.821289', '90', 'Malines', 1, '[{\"added\": {}}]', 20, 2), 407 | (138, '2019-07-29 15:00:55.190429', '91', 'Mouscron', 1, '[{\"added\": {}}]', 20, 2), 408 | (139, '2019-07-29 15:01:07.281250', '92', 'Ostende', 1, '[{\"added\": {}}]', 20, 2), 409 | (140, '2019-07-29 15:01:36.709960', '93', 'Standard Liège', 1, '[{\"added\": {}}]', 20, 2), 410 | (141, '2019-07-29 15:02:05.941406', '94', 'Waasland-Beveren', 1, '[{\"added\": {}}]', 20, 2), 411 | (142, '2019-07-29 15:02:34.385742', '95', 'Waasland-Beveren', 1, '[{\"added\": {}}]', 20, 2), 412 | (143, '2019-07-29 15:02:54.583984', '96', 'Zulte-Waregem', 1, '[{\"added\": {}}]', 20, 2), 413 | (144, '2019-07-29 15:03:40.145507', '97', 'Anaheim Ducks', 1, '[{\"added\": {}}]', 20, 2), 414 | (145, '2019-07-29 15:03:55.108398', '98', 'Arizona Coyotes', 1, '[{\"added\": {}}]', 20, 2), 415 | (146, '2019-07-29 15:04:06.522460', '99', 'Boston Bruins', 1, '[{\"added\": {}}]', 20, 2), 416 | (147, '2019-07-29 15:04:51.323242', '100', 'Columbus Blue Jacket', 1, '[{\"added\": {}}]', 20, 2), 417 | (148, '2019-07-29 15:05:09.088867', '101', 'Dallas Stars', 1, '[{\"added\": {}}]', 20, 2), 418 | (149, '2019-07-29 15:05:09.576171', '102', 'Dallas Stars', 1, '[{\"added\": {}}]', 20, 2), 419 | (150, '2019-07-29 15:05:52.541992', '103', 'Florida Panthers', 1, '[{\"added\": {}}]', 20, 2), 420 | (151, '2019-07-29 15:06:10.320312', '104', 'Los Angeles Kings', 1, '[{\"added\": {}}]', 20, 2), 421 | (152, '2019-07-29 15:07:09.654296', '105', 'Brynäs', 1, '[{\"added\": {}}]', 20, 2), 422 | (153, '2019-07-29 15:07:26.807617', '106', 'Djurgardens', 1, '[{\"added\": {}}]', 20, 2), 423 | (154, '2019-07-29 15:07:46.090820', '107', 'HV 71', 1, '[{\"added\": {}}]', 20, 2), 424 | (155, '2019-07-29 15:08:18.032226', '108', 'Leksands', 1, '[{\"added\": {}}]', 20, 2), 425 | (156, '2019-07-29 15:08:39.199218', '109', 'Linkopings', 1, '[{\"added\": {}}]', 20, 2), 426 | (157, '2019-07-29 15:09:07.039062', '110', 'Oskarshamn', 1, '[{\"added\": {}}]', 20, 2), 427 | (158, '2019-07-29 15:29:17.880859', '101', 'Dallas Stars', 3, '', 20, 2), 428 | (159, '2019-07-29 15:31:51.718750', '111', 'Brooklyn Nets', 1, '[{\"added\": {}}]', 20, 2), 429 | (160, '2019-07-29 15:32:27.191406', '112', 'Franca', 1, '[{\"added\": {}}]', 20, 2), 430 | (161, '2019-07-29 15:33:17.441406', '113', 'Golden State Warrior', 1, '[{\"added\": {}}]', 20, 2), 431 | (162, '2019-07-29 15:33:39.289062', '114', 'Los Angeles Lakers', 1, '[{\"added\": {}}]', 20, 2), 432 | (163, '2019-07-29 15:33:39.398437', '115', 'Los Angeles Lakers', 1, '[{\"added\": {}}]', 20, 2), 433 | (164, '2019-07-29 15:33:39.587890', '116', 'Los Angeles Lakers', 1, '[{\"added\": {}}]', 20, 2), 434 | (165, '2019-07-29 15:34:30.011718', '117', 'Atlanta Hawks', 1, '[{\"added\": {}}]', 20, 2), 435 | (166, '2019-07-29 15:35:27.881835', '118', 'Orlando Magic', 1, '[{\"added\": {}}]', 20, 2), 436 | (167, '2019-07-29 15:35:54.405273', '115', 'Los Angeles Lakers', 3, '', 20, 2), 437 | (168, '2019-07-29 15:35:54.409179', '114', 'Los Angeles Lakers', 3, '', 20, 2), 438 | (169, '2019-07-29 15:40:50.721679', '119', 'Chicago Bulls', 1, '[{\"added\": {}}]', 20, 2), 439 | (170, '2019-07-29 15:42:00.737304', '120', 'Milwaukee Bucks', 1, '[{\"added\": {}}]', 20, 2), 440 | (171, '2019-07-30 00:10:27.044921', '1', 'Match object (1)', 1, '[{\"added\": {}}]', 21, 2), 441 | (172, '2019-07-30 00:11:18.955078', '2', 'Match object (2)', 1, '[{\"added\": {}}]', 21, 2), 442 | (173, '2019-07-30 00:18:47.435546', '4', 'Crystal Palace vs Chelsea', 1, '[{\"added\": {}}]', 21, 2), 443 | (174, '2019-07-30 00:26:35.883789', '23', 'Premier League-Everton', 2, '[{\"changed\": {\"fields\": [\"Championat\"]}}]', 20, 2), 444 | (175, '2019-07-30 00:27:07.536132', '18', 'Premier League-Aston Villa', 2, '[{\"changed\": {\"fields\": [\"Championat\"]}}]', 20, 2), 445 | (176, '2019-07-30 00:27:47.680664', '19', 'Premier League-Bournemouth', 2, '[{\"changed\": {\"fields\": [\"Championat\"]}}]', 20, 2), 446 | (177, '2019-07-30 00:28:01.695312', '21', 'Premier League-Chelsea', 2, '[{\"changed\": {\"fields\": [\"Championat\"]}}]', 20, 2), 447 | (178, '2019-07-30 00:28:05.307617', '21', 'Premier League-Chelsea', 2, '[]', 20, 2), 448 | (179, '2019-07-30 17:36:57.911132', '5', 'Chelsea vs Everton', 1, '[{\"added\": {}}]', 21, 2), 449 | (180, '2019-07-30 17:50:07.583007', '1', 'Fc Barcelone', 2, '[{\"changed\": {\"fields\": [\"nom_Equipe\"]}}]', 20, 2), 450 | (181, '2019-07-30 18:22:15.672851', '6', 'Bournemouth vs Arsenal', 1, '[{\"added\": {}}]', 21, 2), 451 | (182, '2019-07-30 22:20:49.882812', '7', 'NBA-Golden State Warrior vs NBA-Franca', 1, '[{\"added\": {}}]', 21, 2), 452 | (183, '2019-07-30 22:22:22.511718', '8', 'SHL-Djurgardens vs SHL-Leksands', 1, '[{\"added\": {}}]', 21, 2), 453 | (184, '2019-08-01 18:03:55.799804', '1', 'Liga-Fc Barcelone vs Liga-Valence', 1, '[{\"added\": {}}]', 21, 2), 454 | (185, '2019-08-01 18:05:06.884765', '2', 'Premier League-Bournemouth vs Premier League-Chelsea', 1, '[{\"added\": {}}]', 21, 2), 455 | (186, '2019-08-01 18:06:35.327148', '3', 'NBA-Golden State Warrior vs NBA-Atlanta Hawks', 1, '[{\"added\": {}}]', 21, 2), 456 | (187, '2019-08-01 18:09:29.039062', '4', 'Djurgardens vs Franca', 1, '[{\"added\": {}}]', 21, 2), 457 | (188, '2019-08-01 21:36:47.369140', '1', 'choixMatch object (1)', 3, '', 25, 2), 458 | (189, '2019-08-01 23:07:23.761718', '1', 'Paris object (1)', 1, '[{\"added\": {}}]', 23, 2), 459 | (190, '2019-08-01 23:08:51.144531', '1', 'Paris object (1)', 3, '', 23, 2), 460 | (191, '2019-08-01 23:09:12.506835', '4', 'Djurgardens VS Franca', 3, '', 25, 2), 461 | (192, '2019-08-01 23:09:12.509765', '3', 'Bournemouth VS Chelsea', 3, '', 25, 2), 462 | (193, '2019-08-01 23:09:12.512695', '2', 'Bournemouth VS Chelsea', 3, '', 25, 2), 463 | (194, '2019-08-02 00:43:25.406250', '8', 'Fc Barcelone VS Valence', 3, '', 25, 2), 464 | (195, '2019-08-02 00:43:25.495117', '7', 'Fc Barcelone VS Valence', 3, '', 25, 2), 465 | (196, '2019-08-02 00:43:25.498046', '6', 'Bournemouth VS Chelsea', 3, '', 25, 2), 466 | (197, '2019-08-02 00:43:25.500000', '5', 'Fc Barcelone VS Valence', 3, '', 25, 2), 467 | (198, '2019-08-02 06:02:26.809570', '5', 'Atl. Madrid vs Real Madrid', 1, '[{\"added\": {}}]', 21, 2), 468 | (199, '2019-08-02 06:04:04.499023', '6', 'Bordeaux vs Monaco', 1, '[{\"added\": {}}]', 21, 2), 469 | (200, '2019-08-02 06:05:23.092773', '7', 'Mallorca vs Villarreal', 1, '[{\"added\": {}}]', 21, 2), 470 | (201, '2019-08-02 06:06:27.749023', '8', 'Boston Bruins vs HV 71', 1, '[{\"added\": {}}]', 21, 2), 471 | (202, '2019-08-02 06:07:59.500000', '9', 'Chicago Bulls vs Los Angeles Lakers', 1, '[{\"added\": {}}]', 21, 2), 472 | (203, '2019-08-02 06:10:30.446289', '10', 'Linkopings vs Arizona Coyotes', 1, '[{\"added\": {}}]', 21, 2), 473 | (204, '2019-08-02 06:26:46.903320', '12', 'Djurgardens VS Franca', 3, '', 25, 2), 474 | (205, '2019-08-02 08:34:15.042968', '11', 'Leganes vs Ath. Bilbao', 1, '[{\"added\": {}}]', 21, 2), 475 | (206, '2019-08-02 09:30:39.400390', '23', 'Djurgardens VS Franca', 3, '', 25, 2), 476 | (207, '2019-08-02 09:30:39.579101', '22', 'Chicago Bulls VS Los Angeles Lakers', 3, '', 25, 2), 477 | (208, '2019-08-02 09:30:39.582031', '21', 'Bordeaux VS Monaco', 3, '', 25, 2), 478 | (209, '2019-08-02 09:30:39.583984', '20', 'Djurgardens VS Franca', 3, '', 25, 2), 479 | (210, '2019-08-02 09:30:39.585937', '19', 'Golden State Warrior VS Atlanta Hawks', 3, '', 25, 2), 480 | (211, '2019-08-02 09:30:39.586914', '18', 'Bordeaux VS Monaco', 3, '', 25, 2), 481 | (212, '2019-08-02 09:30:39.588867', '17', 'Golden State Warrior VS Atlanta Hawks', 3, '', 25, 2), 482 | (213, '2019-08-02 09:30:39.590820', '16', 'Bordeaux VS Monaco', 3, '', 25, 2), 483 | (214, '2019-08-02 11:41:29.408203', '26', 'Djurgardens VS Franca', 3, '', 25, 2), 484 | (215, '2019-08-02 11:41:29.466796', '25', 'Leganes VS Ath. Bilbao', 3, '', 25, 2), 485 | (216, '2019-08-02 11:41:29.468750', '24', 'Bordeaux VS Monaco', 3, '', 25, 2), 486 | (217, '2019-08-02 12:56:27.993164', '12', 'Villarreal vs Mallorca', 1, '[{\"added\": {}}]', 21, 2); 487 | 488 | -- -------------------------------------------------------- 489 | 490 | -- 491 | -- Structure de la table `django_content_type` 492 | -- 493 | 494 | DROP TABLE IF EXISTS `django_content_type`; 495 | CREATE TABLE IF NOT EXISTS `django_content_type` ( 496 | `id` int(11) NOT NULL AUTO_INCREMENT, 497 | `app_label` varchar(100) NOT NULL, 498 | `model` varchar(100) NOT NULL, 499 | PRIMARY KEY (`id`), 500 | UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`) 501 | ) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=utf8; 502 | 503 | -- 504 | -- Déchargement des données de la table `django_content_type` 505 | -- 506 | 507 | INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES 508 | (1, 'admin', 'logentry'), 509 | (2, 'auth', 'permission'), 510 | (3, 'auth', 'group'), 511 | (4, 'auth', 'user'), 512 | (5, 'contenttypes', 'contenttype'), 513 | (6, 'sessions', 'session'), 514 | (7, 'landing_page', 'landingpage'), 515 | (8, 'landing_page', 'layout'), 516 | (9, 'landing_page', 'portfoliopart'), 517 | (10, 'landing_page', 'pricingpart'), 518 | (11, 'landing_page', 'servicepart'), 519 | (12, 'landing_page', 'testimonialpart'), 520 | (13, 'thumbnail', 'kvstore'), 521 | (14, 'inscription', 'utilisateur'), 522 | (15, 'inscription', 'retrait'), 523 | (16, 'inscription', 'depot'), 524 | (17, 'inscription', 'historique'), 525 | (18, 'inscription', 'championat'), 526 | (19, 'inscription', 'categorie'), 527 | (20, 'inscription', 'equipe'), 528 | (21, 'inscription', 'match'), 529 | (22, 'inscription', 'tickets'), 530 | (23, 'inscription', 'paris'), 531 | (24, 'inscription', 'choix'), 532 | (25, 'inscription', 'choixmatch'); 533 | 534 | -- -------------------------------------------------------- 535 | 536 | -- 537 | -- Structure de la table `django_migrations` 538 | -- 539 | 540 | DROP TABLE IF EXISTS `django_migrations`; 541 | CREATE TABLE IF NOT EXISTS `django_migrations` ( 542 | `id` int(11) NOT NULL AUTO_INCREMENT, 543 | `app` varchar(255) NOT NULL, 544 | `name` varchar(255) NOT NULL, 545 | `applied` datetime(6) NOT NULL, 546 | PRIMARY KEY (`id`) 547 | ) ENGINE=MyISAM AUTO_INCREMENT=40 DEFAULT CHARSET=utf8; 548 | 549 | -- 550 | -- Déchargement des données de la table `django_migrations` 551 | -- 552 | 553 | INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES 554 | (1, 'contenttypes', '0001_initial', '2019-07-23 09:53:52.231445'), 555 | (2, 'auth', '0001_initial', '2019-07-23 09:53:52.872070'), 556 | (3, 'admin', '0001_initial', '2019-07-23 09:53:54.652343'), 557 | (4, 'admin', '0002_logentry_remove_auto_add', '2019-07-23 09:53:55.017578'), 558 | (5, 'admin', '0003_logentry_add_action_flag_choices', '2019-07-23 09:53:55.047851'), 559 | (6, 'contenttypes', '0002_remove_content_type_name', '2019-07-23 09:53:55.246093'), 560 | (7, 'auth', '0002_alter_permission_name_max_length', '2019-07-23 09:53:55.326171'), 561 | (8, 'auth', '0003_alter_user_email_max_length', '2019-07-23 09:53:55.421875'), 562 | (9, 'auth', '0004_alter_user_username_opts', '2019-07-23 09:53:55.456054'), 563 | (10, 'auth', '0005_alter_user_last_login_null', '2019-07-23 09:53:55.567382'), 564 | (11, 'auth', '0006_require_contenttypes_0002', '2019-07-23 09:53:55.573242'), 565 | (12, 'auth', '0007_alter_validators_add_error_messages', '2019-07-23 09:53:55.600586'), 566 | (13, 'auth', '0008_alter_user_username_max_length', '2019-07-23 09:53:55.712890'), 567 | (14, 'auth', '0009_alter_user_last_name_max_length', '2019-07-23 09:53:55.812500'), 568 | (15, 'auth', '0010_alter_group_name_max_length', '2019-07-23 09:53:55.906250'), 569 | (16, 'auth', '0011_update_proxy_permissions', '2019-07-23 09:53:55.934570'), 570 | (17, 'sessions', '0001_initial', '2019-07-23 09:53:56.009765'), 571 | (18, 'landing_page', '0001_initial', '2019-07-23 15:08:15.215820'), 572 | (19, 'landing_page', '0002_auto_20181003_1933', '2019-07-23 15:08:20.658203'), 573 | (20, 'thumbnail', '0001_initial', '2019-07-23 15:08:20.805664'), 574 | (21, 'inscription', '0001_initial', '2019-07-24 01:50:39.430664'), 575 | (22, 'inscription', '0002_depot_retrait', '2019-07-26 09:25:39.768554'), 576 | (23, 'inscription', '0003_auto_20190726_1031', '2019-07-26 09:31:34.764648'), 577 | (24, 'inscription', '0004_auto_20190726_1033', '2019-07-26 09:33:41.770507'), 578 | (25, 'inscription', '0005_utilisateur_username', '2019-07-26 12:29:17.314453'), 579 | (26, 'inscription', '0006_historique', '2019-07-28 12:33:56.114961'), 580 | (27, 'inscription', '0007_auto_20190728_1349', '2019-07-28 12:50:07.940156'), 581 | (28, 'inscription', '0008_categorie_championat_equipe', '2019-07-29 01:48:59.970453'), 582 | (29, 'inscription', '0009_match', '2019-07-30 00:07:50.263671'), 583 | (30, 'inscription', '0010_tickets', '2019-08-01 02:24:18.950195'), 584 | (31, 'inscription', '0011_paris', '2019-08-01 02:41:47.190429'), 585 | (32, 'inscription', '0012_match_slug', '2019-08-01 04:50:00.046875'), 586 | (33, 'inscription', '0013_remove_match_slug', '2019-08-01 04:50:00.291015'), 587 | (34, 'inscription', '0014_auto_20190801_0646', '2019-08-01 05:46:15.299804'), 588 | (35, 'inscription', '0015_choix_paris', '2019-08-01 06:28:15.372070'), 589 | (36, 'inscription', '0010_choixmatch_paris', '2019-08-01 13:05:31.024414'), 590 | (37, 'inscription', '0011_auto_20190801_1816', '2019-08-01 17:16:30.114257'), 591 | (38, 'inscription', '0009_auto_20190801_1902', '2019-08-01 18:02:18.755859'), 592 | (39, 'inscription', '0010_remove_choixmatch_matchid', '2019-08-01 21:34:24.021484'); 593 | 594 | -- -------------------------------------------------------- 595 | 596 | -- 597 | -- Structure de la table `django_session` 598 | -- 599 | 600 | DROP TABLE IF EXISTS `django_session`; 601 | CREATE TABLE IF NOT EXISTS `django_session` ( 602 | `session_key` varchar(40) NOT NULL, 603 | `session_data` longtext NOT NULL, 604 | `expire_date` datetime(6) NOT NULL, 605 | PRIMARY KEY (`session_key`), 606 | KEY `django_session_expire_date_a5c62663` (`expire_date`) 607 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 608 | 609 | -- 610 | -- Déchargement des données de la table `django_session` 611 | -- 612 | 613 | INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES 614 | ('r4g3so99qppiwdbxuvja3fkeysbhz3pe', 'ZGY1MzJiMjY2NjQ2MTYyNzNiZTk3YzliZDYwNjViNTI4ODkxMjg0NDp7Il9hdXRoX3VzZXJfaWQiOiIyIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiJkZjkyMjYxMmYzNDMxMjA3OGUzOWMyN2Y0MzI5NDQ4YTQzM2NmMzc1IiwicHNldWRvIjoiZGphbmdvIHB5dGhvbiIsImlkIjoyNCwidXNlcm5hbWUiOiJweXRob24iLCJ1c2Vyc29sZGUiOjEsInVzZXJwcmVub20iOiJkamFuZ28ifQ==', '2019-08-16 12:49:02.923828'); 615 | 616 | -- -------------------------------------------------------- 617 | 618 | -- 619 | -- Structure de la table `inscription_categorie` 620 | -- 621 | 622 | DROP TABLE IF EXISTS `inscription_categorie`; 623 | CREATE TABLE IF NOT EXISTS `inscription_categorie` ( 624 | `id` int(11) NOT NULL AUTO_INCREMENT, 625 | `nom_cate` varchar(20) NOT NULL, 626 | PRIMARY KEY (`id`) 627 | ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; 628 | 629 | -- 630 | -- Déchargement des données de la table `inscription_categorie` 631 | -- 632 | 633 | INSERT INTO `inscription_categorie` (`id`, `nom_cate`) VALUES 634 | (1, 'Football'), 635 | (2, 'Basket'), 636 | (3, 'Hockey'); 637 | 638 | -- -------------------------------------------------------- 639 | 640 | -- 641 | -- Structure de la table `inscription_championat` 642 | -- 643 | 644 | DROP TABLE IF EXISTS `inscription_championat`; 645 | CREATE TABLE IF NOT EXISTS `inscription_championat` ( 646 | `id` int(11) NOT NULL AUTO_INCREMENT, 647 | `nom_cha` varchar(20) NOT NULL, 648 | `Categorie_id` int(11) NOT NULL, 649 | PRIMARY KEY (`id`), 650 | KEY `inscription_championat_Categorie_id_519a3670` (`Categorie_id`) 651 | ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8; 652 | 653 | -- 654 | -- Déchargement des données de la table `inscription_championat` 655 | -- 656 | 657 | INSERT INTO `inscription_championat` (`id`, `nom_cha`, `Categorie_id`) VALUES 658 | (1, 'Ligue 1', 1), 659 | (2, 'Premier League', 1), 660 | (3, 'Liga', 1), 661 | (5, 'Serie A', 1), 662 | (6, 'Bundesliga', 1), 663 | (7, 'Jupiler League.', 1), 664 | (8, 'NBA', 2), 665 | (9, 'MLB', 2), 666 | (10, 'LNH', 3), 667 | (11, 'Nationale 1', 2), 668 | (12, 'EuroBasket U18', 2), 669 | (13, 'SHL', 3); 670 | 671 | -- -------------------------------------------------------- 672 | 673 | -- 674 | -- Structure de la table `inscription_choixmatch` 675 | -- 676 | 677 | DROP TABLE IF EXISTS `inscription_choixmatch`; 678 | CREATE TABLE IF NOT EXISTS `inscription_choixmatch` ( 679 | `id` int(11) NOT NULL AUTO_INCREMENT, 680 | `match` varchar(60) NOT NULL, 681 | `ordered` tinyint(1) NOT NULL, 682 | `equipe` varchar(20) NOT NULL, 683 | `cote` decimal(10,2) NOT NULL, 684 | `Utilisateur_id` int(11) NOT NULL, 685 | PRIMARY KEY (`id`), 686 | KEY `inscription_choixmatch_Utilisateur_id_fb209900` (`Utilisateur_id`) 687 | ) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; 688 | 689 | -- 690 | -- Déchargement des données de la table `inscription_choixmatch` 691 | -- 692 | 693 | INSERT INTO `inscription_choixmatch` (`id`, `match`, `ordered`, `equipe`, `cote`, `Utilisateur_id`) VALUES 694 | (31, 'Bournemouth VS Chelsea', 0, 'V2', '2.05', 24), 695 | (32, 'Golden State Warrior VS Atlanta Hawks', 0, 'V1', '1.45', 24), 696 | (30, 'Bordeaux VS Monaco', 0, 'V1', '2.40', 24), 697 | (29, 'Djurgardens VS Franca', 0, 'V2', '4.50', 23), 698 | (28, 'Golden State Warrior VS Atlanta Hawks', 0, 'V2', '1.90', 23), 699 | (27, 'Bordeaux VS Monaco', 0, 'V1', '2.40', 23), 700 | (33, 'Linkopings VS Arizona Coyotes', 0, 'X', '5.20', 24), 701 | (34, 'Fc Barcelone VS Valence', 0, 'V1', '1.70', 24); 702 | 703 | -- -------------------------------------------------------- 704 | 705 | -- 706 | -- Structure de la table `inscription_depot` 707 | -- 708 | 709 | DROP TABLE IF EXISTS `inscription_depot`; 710 | CREATE TABLE IF NOT EXISTS `inscription_depot` ( 711 | `id` int(11) NOT NULL AUTO_INCREMENT, 712 | `operateur` varchar(20) NOT NULL, 713 | `numero` varchar(20) NOT NULL, 714 | `depot_date` datetime(6) NOT NULL, 715 | `Montant_depot` decimal(10,2) NOT NULL, 716 | `Utilisateur_id` int(11) NOT NULL, 717 | PRIMARY KEY (`id`), 718 | KEY `inscription_depot_Utilisateur_id_675287e2` (`Utilisateur_id`) 719 | ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; 720 | 721 | -- 722 | -- Déchargement des données de la table `inscription_depot` 723 | -- 724 | 725 | INSERT INTO `inscription_depot` (`id`, `operateur`, `numero`, `depot_date`, `Montant_depot`, `Utilisateur_id`) VALUES 726 | (1, 'Mtn Money', '59301619', '2019-07-28 12:53:13.517304', '5500.00', 1), 727 | (2, 'Orange Money', '6595665', '2019-07-28 17:40:23.819062', '2250.00', 1), 728 | (3, 'Flooz Money', '412669585', '2019-08-02 08:13:03.250000', '5000.00', 15), 729 | (4, 'Flooz Money', '02596840', '2019-08-02 08:28:48.830078', '5000.00', 23), 730 | (5, 'Orange Money', '10000', '2019-08-02 12:26:56.432617', '500000.00', 23), 731 | (6, 'Mtn Money', '6595665', '2019-08-02 12:49:53.628906', '5000.00', 24); 732 | 733 | -- -------------------------------------------------------- 734 | 735 | -- 736 | -- Structure de la table `inscription_equipe` 737 | -- 738 | 739 | DROP TABLE IF EXISTS `inscription_equipe`; 740 | CREATE TABLE IF NOT EXISTS `inscription_equipe` ( 741 | `id` int(11) NOT NULL AUTO_INCREMENT, 742 | `nom_Equipe` varchar(20) NOT NULL, 743 | `Championat_id` int(11) NOT NULL, 744 | PRIMARY KEY (`id`), 745 | KEY `inscription_equipe_Championat_id_69dc5d97` (`Championat_id`) 746 | ) ENGINE=MyISAM AUTO_INCREMENT=121 DEFAULT CHARSET=utf8; 747 | 748 | -- 749 | -- Déchargement des données de la table `inscription_equipe` 750 | -- 751 | 752 | INSERT INTO `inscription_equipe` (`id`, `nom_Equipe`, `Championat_id`) VALUES 753 | (1, 'Fc Barcelone', 3), 754 | (3, 'Real Madrid', 3), 755 | (4, 'Fc seville', 3), 756 | (5, 'Valence', 3), 757 | (6, 'Ath. Bilbao', 3), 758 | (7, 'Atl. Madrid', 3), 759 | (8, 'Celta Vigo', 3), 760 | (9, 'Leganes', 3), 761 | (10, 'Levante', 3), 762 | (11, 'Mallorca', 3), 763 | (12, 'Osasuna', 3), 764 | (13, 'Villarreal', 3), 765 | (19, 'Bournemouth', 2), 766 | (18, 'Aston Villa', 2), 767 | (17, 'Arsenal', 2), 768 | (20, 'Brighton', 2), 769 | (21, 'Chelsea', 2), 770 | (22, 'Crystal Palace', 2), 771 | (23, 'Everton', 2), 772 | (24, 'Leicester', 2), 773 | (25, 'Liverpool', 2), 774 | (26, 'Manchester City', 2), 775 | (27, 'Tottenham', 2), 776 | (28, 'Newcastle', 2), 777 | (29, 'Norwich', 2), 778 | (30, 'Norwich', 2), 779 | (31, 'Manchester Utd', 2), 780 | (32, 'Augsburg', 6), 781 | (33, 'Bayern', 6), 782 | (34, 'Dortmund', 6), 783 | (35, 'Dusseldorf', 6), 784 | (36, 'FC Koln', 6), 785 | (37, 'Hoffenheim', 6), 786 | (38, 'Freiburg', 6), 787 | (39, 'Hertha', 6), 788 | (40, 'Mainz', 6), 789 | (41, 'Monchengladbach', 6), 790 | (42, 'Paderborn', 6), 791 | (43, 'RB Leipzig', 6), 792 | (44, 'Schalke 04', 6), 793 | (45, 'Amiens', 1), 794 | (46, 'Angers', 1), 795 | (47, 'Bordeaux', 1), 796 | (48, 'Brest', 1), 797 | (49, 'Dijon', 1), 798 | (50, 'Lille', 1), 799 | (51, 'Lyon', 1), 800 | (52, 'Marseille', 1), 801 | (53, 'Metz', 1), 802 | (54, 'Monaco', 1), 803 | (55, 'Montpellier', 1), 804 | (56, 'Nantes', 1), 805 | (57, 'Nice', 1), 806 | (58, 'Nîmes', 1), 807 | (59, 'PSG', 1), 808 | (60, 'PSG', 1), 809 | (61, 'Saint-Etienne', 1), 810 | (62, 'AC Milan', 5), 811 | (63, 'AS Rome', 5), 812 | (64, 'Atalanta', 5), 813 | (65, 'Bologne', 5), 814 | (66, 'Chievo', 5), 815 | (67, 'Empoli', 5), 816 | (68, 'Fiorentina', 5), 817 | (69, 'Frosinone', 5), 818 | (70, 'Genoa', 5), 819 | (71, 'Inter', 5), 820 | (72, 'Juventus', 5), 821 | (74, 'Lazio', 5), 822 | (75, 'Naples', 5), 823 | (76, 'Parme', 5), 824 | (77, 'Sampdoria', 5), 825 | (84, 'Cercle Bruges', 7), 826 | (83, 'Antwerp', 7), 827 | (82, 'Anderlecht', 7), 828 | (81, 'Torino', 5), 829 | (85, 'Courtrai', 7), 830 | (86, 'Eupen', 7), 831 | (87, 'Genk', 7), 832 | (88, 'La Gantoise', 7), 833 | (89, 'Malines', 7), 834 | (90, 'Malines', 7), 835 | (91, 'Mouscron', 7), 836 | (92, 'Ostende', 7), 837 | (93, 'Standard Liège', 7), 838 | (94, 'Waasland-Beveren', 7), 839 | (95, 'Waasland-Beveren', 7), 840 | (96, 'Zulte-Waregem', 7), 841 | (97, 'Anaheim Ducks', 10), 842 | (98, 'Arizona Coyotes', 10), 843 | (99, 'Boston Bruins', 10), 844 | (100, 'Columbus Blue Jacket', 10), 845 | (111, 'Brooklyn Nets', 8), 846 | (102, 'Dallas Stars', 10), 847 | (103, 'Florida Panthers', 10), 848 | (104, 'Los Angeles Kings', 10), 849 | (105, 'Brynäs', 13), 850 | (106, 'Djurgardens', 13), 851 | (107, 'HV 71', 13), 852 | (108, 'Leksands', 13), 853 | (109, 'Linkopings', 13), 854 | (110, 'Oskarshamn', 13), 855 | (112, 'Franca', 8), 856 | (113, 'Golden State Warrior', 8), 857 | (120, 'Milwaukee Bucks', 8), 858 | (119, 'Chicago Bulls', 8), 859 | (116, 'Los Angeles Lakers', 8), 860 | (117, 'Atlanta Hawks', 8), 861 | (118, 'Orlando Magic', 8); 862 | 863 | -- -------------------------------------------------------- 864 | 865 | -- 866 | -- Structure de la table `inscription_historique` 867 | -- 868 | 869 | DROP TABLE IF EXISTS `inscription_historique`; 870 | CREATE TABLE IF NOT EXISTS `inscription_historique` ( 871 | `id` int(11) NOT NULL AUTO_INCREMENT, 872 | `Transaction` varchar(20) NOT NULL, 873 | `date` datetime(6) NOT NULL, 874 | `Montant` decimal(10,2) NOT NULL, 875 | `operateur` varchar(20) NOT NULL, 876 | `numero` varchar(20) NOT NULL, 877 | `Utilisateur_id` int(11) NOT NULL, 878 | PRIMARY KEY (`id`), 879 | KEY `inscription_historique_Utilisateur_id_8e3a36a4` (`Utilisateur_id`) 880 | ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; 881 | 882 | -- 883 | -- Déchargement des données de la table `inscription_historique` 884 | -- 885 | 886 | INSERT INTO `inscription_historique` (`id`, `Transaction`, `date`, `Montant`, `operateur`, `numero`, `Utilisateur_id`) VALUES 887 | (1, 'depôt', '2019-07-28 12:53:13.521211', '5500.00', 'Mtn Money', '59301619', 1), 888 | (2, 'Retrait', '2019-07-28 12:56:12.202851', '10000.00', 'Flooz Money', '41266716', 1), 889 | (3, 'depôt', '2019-07-28 17:40:23.898164', '2250.00', 'Orange Money', '6595665', 1), 890 | (4, 'depôt', '2019-08-02 08:13:03.416015', '5000.00', 'Flooz Money', '412669585', 15), 891 | (5, 'depôt', '2019-08-02 08:28:48.842773', '5000.00', 'Flooz Money', '02596840', 23), 892 | (6, 'Retrait', '2019-08-02 08:32:31.300781', '500.00', 'Orange Money', '59301619', 23), 893 | (7, 'depôt', '2019-08-02 12:26:56.561523', '500000.00', 'Orange Money', '10000', 23), 894 | (8, 'depôt', '2019-08-02 12:49:53.714843', '5000.00', 'Mtn Money', '6595665', 24), 895 | (9, 'Retrait', '2019-08-02 12:54:09.586914', '2000.00', 'Flooz Money', '59301619', 24); 896 | 897 | -- -------------------------------------------------------- 898 | 899 | -- 900 | -- Structure de la table `inscription_match` 901 | -- 902 | 903 | DROP TABLE IF EXISTS `inscription_match`; 904 | CREATE TABLE IF NOT EXISTS `inscription_match` ( 905 | `id` int(11) NOT NULL AUTO_INCREMENT, 906 | `date` date NOT NULL, 907 | `heure` time(6) NOT NULL, 908 | `v1` decimal(10,2) NOT NULL, 909 | `v2` decimal(10,2) NOT NULL, 910 | `x` decimal(10,2) NOT NULL, 911 | `Categorie_id` int(11) NOT NULL, 912 | `Championat_id` int(11) NOT NULL, 913 | `equipe_1_id` int(11) NOT NULL, 914 | `equipe_2_id` int(11) NOT NULL, 915 | PRIMARY KEY (`id`), 916 | KEY `inscription_match_Categorie_id_008fb585` (`Categorie_id`), 917 | KEY `inscription_match_Championat_id_12814784` (`Championat_id`), 918 | KEY `inscription_match_equipe_1_id_9ec63132` (`equipe_1_id`), 919 | KEY `inscription_match_equipe_2_id_d0afbaf5` (`equipe_2_id`) 920 | ) ENGINE=MyISAM AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; 921 | 922 | -- 923 | -- Déchargement des données de la table `inscription_match` 924 | -- 925 | 926 | INSERT INTO `inscription_match` (`id`, `date`, `heure`, `v1`, `v2`, `x`, `Categorie_id`, `Championat_id`, `equipe_1_id`, `equipe_2_id`) VALUES 927 | (1, '2019-08-03', '18:30:00.000000', '1.70', '2.45', '3.90', 1, 3, 1, 5), 928 | (2, '2019-08-03', '16:00:00.000000', '5.75', '2.05', '3.50', 1, 2, 19, 21), 929 | (3, '2019-08-04', '00:00:00.000000', '1.45', '1.90', '2.10', 2, 8, 113, 117), 930 | (4, '2019-08-04', '00:00:00.000000', '2.92', '4.50', '16.00', 3, 13, 106, 112), 931 | (5, '2019-08-04', '18:30:00.000000', '1.32', '4.75', '3.50', 1, 3, 7, 3), 932 | (6, '2019-08-02', '14:30:00.000000', '2.40', '2.60', '5.00', 1, 1, 47, 54), 933 | (7, '2019-08-02', '11:30:00.000000', '3.40', '1.72', '3.90', 1, 3, 11, 13), 934 | (8, '2019-08-03', '23:00:00.000000', '1.60', '2.40', '3.40', 3, 13, 99, 107), 935 | (9, '2019-08-13', '18:00:00.000000', '2.10', '3.20', '2.00', 2, 8, 119, 116), 936 | (10, '2019-08-03', '18:30:00.000000', '1.30', '2.65', '5.20', 3, 13, 109, 98), 937 | (11, '2019-08-02', '18:00:00.000000', '1.50', '2.30', '4.00', 1, 3, 9, 6), 938 | (12, '2019-08-13', '18:30:00.000000', '2.30', '4.65', '5.00', 1, 3, 13, 11); 939 | 940 | -- -------------------------------------------------------- 941 | 942 | -- 943 | -- Structure de la table `inscription_paris` 944 | -- 945 | 946 | DROP TABLE IF EXISTS `inscription_paris`; 947 | CREATE TABLE IF NOT EXISTS `inscription_paris` ( 948 | `id` int(11) NOT NULL AUTO_INCREMENT, 949 | `ref_code` varchar(20) DEFAULT NULL, 950 | `coteTotal` decimal(10,2) NOT NULL, 951 | `Mise` decimal(10,2) NOT NULL, 952 | `Gain` decimal(10,2) NOT NULL, 953 | `statut` varchar(20) NOT NULL, 954 | `Utilisateur_id` int(11) NOT NULL, 955 | PRIMARY KEY (`id`), 956 | KEY `inscription_paris_Utilisateur_id_e1ae7576` (`Utilisateur_id`) 957 | ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; 958 | 959 | -- -------------------------------------------------------- 960 | 961 | -- 962 | -- Structure de la table `inscription_paris_selection` 963 | -- 964 | 965 | DROP TABLE IF EXISTS `inscription_paris_selection`; 966 | CREATE TABLE IF NOT EXISTS `inscription_paris_selection` ( 967 | `id` int(11) NOT NULL AUTO_INCREMENT, 968 | `paris_id` int(11) NOT NULL, 969 | `choixmatch_id` int(11) NOT NULL, 970 | PRIMARY KEY (`id`), 971 | UNIQUE KEY `inscription_paris_selection_paris_id_choixmatch_id_e824cda1_uniq` (`paris_id`,`choixmatch_id`), 972 | KEY `inscription_paris_selection_paris_id_391ca2ec` (`paris_id`), 973 | KEY `inscription_paris_selection_choixmatch_id_d40eec72` (`choixmatch_id`) 974 | ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; 975 | 976 | -- -------------------------------------------------------- 977 | 978 | -- 979 | -- Structure de la table `inscription_retrait` 980 | -- 981 | 982 | DROP TABLE IF EXISTS `inscription_retrait`; 983 | CREATE TABLE IF NOT EXISTS `inscription_retrait` ( 984 | `id` int(11) NOT NULL AUTO_INCREMENT, 985 | `operateur` varchar(20) NOT NULL, 986 | `numero` varchar(20) NOT NULL, 987 | `retrait_date` datetime(6) NOT NULL, 988 | `Montant_retrait` decimal(10,2) NOT NULL, 989 | `Utilisateur_id` int(11) NOT NULL, 990 | PRIMARY KEY (`id`), 991 | KEY `inscription_retrait_Utilisateur_id_f7cde5c6` (`Utilisateur_id`) 992 | ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; 993 | 994 | -- 995 | -- Déchargement des données de la table `inscription_retrait` 996 | -- 997 | 998 | INSERT INTO `inscription_retrait` (`id`, `operateur`, `numero`, `retrait_date`, `Montant_retrait`, `Utilisateur_id`) VALUES 999 | (1, 'Flooz Money', '41266716', '2019-07-28 12:56:12.199922', '10000.00', 1), 1000 | (2, 'Orange Money', '59301619', '2019-08-02 08:32:31.160156', '500.00', 23), 1001 | (3, 'Flooz Money', '59301619', '2019-08-02 12:54:09.489257', '2000.00', 24); 1002 | 1003 | -- -------------------------------------------------------- 1004 | 1005 | -- 1006 | -- Structure de la table `inscription_utilisateur` 1007 | -- 1008 | 1009 | DROP TABLE IF EXISTS `inscription_utilisateur`; 1010 | CREATE TABLE IF NOT EXISTS `inscription_utilisateur` ( 1011 | `id` int(11) NOT NULL AUTO_INCREMENT, 1012 | `nom` varchar(60) NOT NULL, 1013 | `prenoms` varchar(60) NOT NULL, 1014 | `date_naissance` date NOT NULL, 1015 | `sexe` varchar(20) NOT NULL, 1016 | `email` varchar(254) NOT NULL, 1017 | `pays` varchar(60) NOT NULL, 1018 | `ville` varchar(20) NOT NULL, 1019 | `solde` decimal(10,2) NOT NULL, 1020 | `numero` varchar(20) NOT NULL, 1021 | `password` varchar(100) NOT NULL, 1022 | `username` varchar(60) NOT NULL, 1023 | PRIMARY KEY (`id`) 1024 | ) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=utf8; 1025 | 1026 | -- 1027 | -- Déchargement des données de la table `inscription_utilisateur` 1028 | -- 1029 | 1030 | INSERT INTO `inscription_utilisateur` (`id`, `nom`, `prenoms`, `date_naissance`, `sexe`, `email`, `pays`, `ville`, `solde`, `numero`, `password`, `username`) VALUES 1031 | (1, 'mohamed', 'saros', '1994-11-17', 'msaculin', 'mohamedsaros@gmail.com', 'mali', 'bko', '-3849.00', '6595665', 'mokoi', 'user'), 1032 | (16, 'bonjour', 'bonsoir', '1994-11-17', 'bisou', 'yasmine@hoymail.com', 'mpl', ';dkjnbdh', '1.00', 'njnjfbfk,', 'azerty', 'user'), 1033 | (15, 'Guindo', 'Mahamadou', '4528-09-19', 'msaculin', 'test@test.ci', 'mali', 'bko', '2501.00', '6595665', 'azerty', 'user'), 1034 | (19, 'kady', 'baradji', '1994-11-17', 'Feminin', 'mohamedsaros@gmail.com', 'Côte d\'ivoire', 'Abidjan', '4000.00', '59301619', 'azerty', 'Saros94'), 1035 | (20, 'test', 'test', '1944-11-17', 'test', 'test@test.ci', 'mali', 'bko', '1.00', '0102290217', 'azerty', 'Saros10'), 1036 | (21, 'test', 'python', '2000-01-22', 'masculin', 'test@test.ci', 'Côte d\'ivoire', 'Daloa', '1.00', '111111414', 'azerty', 'test24'), 1037 | (22, 'test', 'saros', '2000-11-17', 'masaculin', 'test@test.ci', 'Côte d\'ivoire', 'paris', '1.00', '6595665', 'azerty', 'Saros10'), 1038 | (23, 'nan', 'python', '2011-01-01', 'masculin', 'python@nan.ci', 'Côte d\'ivoire', 'abidjan', '480001.00', '02050804', 'azerty', 'nan'), 1039 | (24, 'python', 'django', '2012-11-17', 'masculin', 'django.python@nan.ci', 'Côte d\'ivoire', 'paris', '501.00', '6595665', 'azerty', 'django python'); 1040 | COMMIT; 1041 | 1042 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 1043 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 1044 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 1045 | -------------------------------------------------------------------------------- /src/requirements.txt: -------------------------------------------------------------------------------- 1 | Django==2.2.4 2 | django-admin-sortable2==0.7.2 3 | django-angular==2.2 4 | django-appconf==1.0.3 5 | django-classy-tags==0.9.0 6 | django-cms==3.5.3 7 | django-filer==1.5.0 8 | django-formtools==2.1 9 | django-fsm==2.6.1 10 | django-fsm-admin==1.2.4 11 | django-ipware==2.1.0 12 | django-js-asset==1.2.2 13 | django-mptt==0.10.0 14 | django-polymorphic==2.0.3 15 | django-post-office==3.2.1 16 | django-rest-auth==0.9.5 17 | django-sekizai==1.0.0 18 | django-select2==6.3.1 19 | django-shop==1.0.2 20 | django-shop-ajax==0.1.3 21 | django-treebeard==4.3 22 | djangocms-admin-style==1.4.0 23 | djangocms-cascade==0.19 24 | djangocms-text-ckeditor==3.8.0 25 | djangorestframework==3.8.2 26 | easy-thumbnails==2.6 27 | html5lib==1.0.1 28 | jsonfield==2.0.2 29 | mysqlclient==1.4.2.post1 30 | Pillow==6.1.0 31 | pytz==2019.1 32 | PyYAML==5.1.1 33 | reportlab==3.5.23 34 | six==1.12.0 35 | sorl-thumbnail==12.5.0 36 | sqlparse==0.3.0 37 | Unidecode==1.0.23 38 | webencodings==0.5.1 39 | -------------------------------------------------------------------------------- /src/static/css/connexion.css: -------------------------------------------------------------------------------- 1 | form-label-group>label { 2 | position: absolute; 3 | top: 0; 4 | left: 0; 5 | display: block; 6 | width: 100%; 7 | margin-bottom: 0; 8 | /* Override default `