From 9a85f73c5efe78ef1d3586f8db29d1114842de63 Mon Sep 17 00:00:00 2001 From: sayni koffi Date: Wed, 27 Mar 2024 11:37:39 +0000 Subject: [PATCH] MJA du 27032024 --- beasy/authentication/__init__.py | 0 beasy/authentication/__pycache__/__init__.cpython-312.pyc | Bin 0 -> 172 bytes beasy/authentication/__pycache__/admin.cpython-312.pyc | Bin 0 -> 216 bytes beasy/authentication/__pycache__/apps.cpython-312.pyc | Bin 0 -> 494 bytes beasy/authentication/__pycache__/models.cpython-312.pyc | Bin 0 -> 827 bytes beasy/authentication/admin.py | 3 +++ beasy/authentication/apps.py | 6 ++++++ beasy/authentication/migrations/__init__.py | 0 beasy/authentication/models.py | 15 +++++++++++++++ beasy/authentication/tests.py | 3 +++ beasy/authentication/views.py | 3 +++ beasy/mobile/__init__.py | 0 beasy/mobile/__pycache__/__init__.cpython-312.pyc | Bin 0 -> 164 bytes beasy/mobile/__pycache__/admin.cpython-312.pyc | Bin 0 -> 208 bytes beasy/mobile/__pycache__/apps.cpython-312.pyc | Bin 0 -> 470 bytes beasy/mobile/__pycache__/models.cpython-312.pyc | Bin 0 -> 205 bytes beasy/mobile/admin.py | 3 +++ beasy/mobile/apps.py | 6 ++++++ beasy/mobile/migrations/__init__.py | 0 beasy/mobile/models.py | 3 +++ beasy/mobile/tests.py | 3 +++ beasy/mobile/views.py | 3 +++ 22 files changed, 48 insertions(+) create mode 100644 beasy/authentication/__init__.py create mode 100644 beasy/authentication/__pycache__/__init__.cpython-312.pyc create mode 100644 beasy/authentication/__pycache__/admin.cpython-312.pyc create mode 100644 beasy/authentication/__pycache__/apps.cpython-312.pyc create mode 100644 beasy/authentication/__pycache__/models.cpython-312.pyc create mode 100644 beasy/authentication/admin.py create mode 100644 beasy/authentication/apps.py create mode 100644 beasy/authentication/migrations/__init__.py create mode 100644 beasy/authentication/models.py create mode 100644 beasy/authentication/tests.py create mode 100644 beasy/authentication/views.py create mode 100644 beasy/mobile/__init__.py create mode 100644 beasy/mobile/__pycache__/__init__.cpython-312.pyc create mode 100644 beasy/mobile/__pycache__/admin.cpython-312.pyc create mode 100644 beasy/mobile/__pycache__/apps.cpython-312.pyc create mode 100644 beasy/mobile/__pycache__/models.cpython-312.pyc create mode 100644 beasy/mobile/admin.py create mode 100644 beasy/mobile/apps.py create mode 100644 beasy/mobile/migrations/__init__.py create mode 100644 beasy/mobile/models.py create mode 100644 beasy/mobile/tests.py create mode 100644 beasy/mobile/views.py diff --git a/beasy/authentication/__init__.py b/beasy/authentication/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/authentication/__init__.py diff --git a/beasy/authentication/__pycache__/__init__.cpython-312.pyc b/beasy/authentication/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..a58ffb4 Binary files /dev/null and b/beasy/authentication/__pycache__/__init__.cpython-312.pyc differ diff --git a/beasy/authentication/__pycache__/admin.cpython-312.pyc b/beasy/authentication/__pycache__/admin.cpython-312.pyc new file mode 100644 index 0000000..6a367d2 Binary files /dev/null and b/beasy/authentication/__pycache__/admin.cpython-312.pyc differ diff --git a/beasy/authentication/__pycache__/apps.cpython-312.pyc b/beasy/authentication/__pycache__/apps.cpython-312.pyc new file mode 100644 index 0000000..206a6b1 Binary files /dev/null and b/beasy/authentication/__pycache__/apps.cpython-312.pyc differ diff --git a/beasy/authentication/__pycache__/models.cpython-312.pyc b/beasy/authentication/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000..b2d2c86 Binary files /dev/null and b/beasy/authentication/__pycache__/models.cpython-312.pyc differ diff --git a/beasy/authentication/admin.py b/beasy/authentication/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/beasy/authentication/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/beasy/authentication/apps.py b/beasy/authentication/apps.py new file mode 100644 index 0000000..c65f1d2 --- /dev/null +++ b/beasy/authentication/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AuthenticationConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "authentication" diff --git a/beasy/authentication/migrations/__init__.py b/beasy/authentication/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/authentication/migrations/__init__.py diff --git a/beasy/authentication/models.py b/beasy/authentication/models.py new file mode 100644 index 0000000..4ce9b33 --- /dev/null +++ b/beasy/authentication/models.py @@ -0,0 +1,15 @@ +from django.contrib.auth.models import AbstractUser +from django.db import models + + +class User(AbstractUser): + CREATOR = 'CREATOR' + SUBSCRIBER = 'SUBSCRIBER' + + ROLE_CHOICES = ( + (CREATOR, 'Créateur'), + (SUBSCRIBER, 'Abonné'), + ) + profile_photo = models.ImageField(verbose_name='Photo de profil') + role = models.CharField(max_length=30, choices=ROLE_CHOICES, verbose_name='Rôle') +# Create your models here. diff --git a/beasy/authentication/tests.py b/beasy/authentication/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/beasy/authentication/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/beasy/authentication/views.py b/beasy/authentication/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/beasy/authentication/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/beasy/mobile/__init__.py b/beasy/mobile/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/mobile/__init__.py diff --git a/beasy/mobile/__pycache__/__init__.cpython-312.pyc b/beasy/mobile/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..dd0caf9 Binary files /dev/null and b/beasy/mobile/__pycache__/__init__.cpython-312.pyc differ diff --git a/beasy/mobile/__pycache__/admin.cpython-312.pyc b/beasy/mobile/__pycache__/admin.cpython-312.pyc new file mode 100644 index 0000000..ef35ac4 Binary files /dev/null and b/beasy/mobile/__pycache__/admin.cpython-312.pyc differ diff --git a/beasy/mobile/__pycache__/apps.cpython-312.pyc b/beasy/mobile/__pycache__/apps.cpython-312.pyc new file mode 100644 index 0000000..37b1d78 Binary files /dev/null and b/beasy/mobile/__pycache__/apps.cpython-312.pyc differ diff --git a/beasy/mobile/__pycache__/models.cpython-312.pyc b/beasy/mobile/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000..5f4e2bb Binary files /dev/null and b/beasy/mobile/__pycache__/models.cpython-312.pyc differ diff --git a/beasy/mobile/admin.py b/beasy/mobile/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/beasy/mobile/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/beasy/mobile/apps.py b/beasy/mobile/apps.py new file mode 100644 index 0000000..2fc5ff5 --- /dev/null +++ b/beasy/mobile/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MobileConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "mobile" diff --git a/beasy/mobile/migrations/__init__.py b/beasy/mobile/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/mobile/migrations/__init__.py diff --git a/beasy/mobile/models.py b/beasy/mobile/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/beasy/mobile/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/beasy/mobile/tests.py b/beasy/mobile/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/beasy/mobile/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/beasy/mobile/views.py b/beasy/mobile/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/beasy/mobile/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. -- libgit2 0.27.1