mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-24 17:42:23 +00:00
Use Django 4.1 (soon 4.2) to use the new async framework
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
f3d611913e
commit
19f41152ee
@ -2,7 +2,7 @@
|
|||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import include, url
|
from django.urls import include, path
|
||||||
from rest_framework import routers
|
from rest_framework import routers
|
||||||
|
|
||||||
from .viewsets import UserViewSet
|
from .viewsets import UserViewSet
|
||||||
@ -29,6 +29,6 @@ app_name = 'api'
|
|||||||
# Wire up our API using automatic URL routing.
|
# Wire up our API using automatic URL routing.
|
||||||
# Additionally, we include login URLs for the browsable API.
|
# Additionally, we include login URLs for the browsable API.
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url('^', include(router.urls)),
|
path('', include(router.urls)),
|
||||||
url('^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||||
]
|
]
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
# Generated by Django 4.1.7 on 2023-03-22 11:22
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("contenttypes", "0002_remove_content_type_name"),
|
||||||
|
("registration", "0005_studentregistration_vaccine_sheet"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="registration",
|
||||||
|
name="polymorphic_ctype",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
editable=False,
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
related_name="polymorphic_%(app_label)s.%(class)s_set+",
|
||||||
|
to="contenttypes.contenttype",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
@ -1,5 +1,5 @@
|
|||||||
crispy-bootstrap5~=0.7
|
crispy-bootstrap5~=0.7
|
||||||
Django>=3.2,<4.0
|
Django>=4.1,<5.0
|
||||||
django-cas-server~=2.0
|
django-cas-server~=2.0
|
||||||
django-crispy-forms~=1.14
|
django-crispy-forms~=1.14
|
||||||
django-extensions~=3.2
|
django-extensions~=3.2
|
||||||
@ -16,7 +16,7 @@ matrix-nio~=0.20
|
|||||||
phonenumbers~=8.12.57
|
phonenumbers~=8.12.57
|
||||||
psycopg2-binary~=2.9.5
|
psycopg2-binary~=2.9.5
|
||||||
pypdf~=3.4
|
pypdf~=3.4
|
||||||
ipython~=8.5.0
|
ipython~=8.11.0
|
||||||
python-magic~=0.4.26
|
python-magic~=0.4.26
|
||||||
requests~=2.28.1
|
requests~=2.28.1
|
||||||
sympasoap~=1.1
|
sympasoap~=1.1
|
||||||
|
@ -25,7 +25,6 @@ DEFAULT_FROM_EMAIL = os.getenv('FROM_EMAIL', 'Contact TFJM²') + f" <{SERVER_EMA
|
|||||||
|
|
||||||
# Security settings
|
# Security settings
|
||||||
SECURE_CONTENT_TYPE_NOSNIFF = False
|
SECURE_CONTENT_TYPE_NOSNIFF = False
|
||||||
SECURE_BROWSER_XSS_FILTER = False
|
|
||||||
SESSION_COOKIE_SECURE = False
|
SESSION_COOKIE_SECURE = False
|
||||||
CSRF_COOKIE_SECURE = False
|
CSRF_COOKIE_SECURE = False
|
||||||
CSRF_COOKIE_HTTPONLY = False
|
CSRF_COOKIE_HTTPONLY = False
|
||||||
|
2
tox.ini
2
tox.ini
@ -12,7 +12,7 @@ sitepackages = False
|
|||||||
deps =
|
deps =
|
||||||
coverage
|
coverage
|
||||||
crispy-bootstrap5~=0.7
|
crispy-bootstrap5~=0.7
|
||||||
Django>=3.2,<4.0
|
Django>=4.1,<5.0
|
||||||
django-crispy-forms~=1.14
|
django-crispy-forms~=1.14
|
||||||
django-filter~=22.1
|
django-filter~=22.1
|
||||||
django-haystack~=3.2
|
django-haystack~=3.2
|
||||||
|
Loading…
Reference in New Issue
Block a user