diff options
author | Sunil Shetye | 2024-07-08 16:08:02 +0530 |
---|---|---|
committer | Sunil Shetye | 2024-07-08 16:08:02 +0530 |
commit | efba28d731c315dc2da7755622167818c6278717 (patch) | |
tree | bcc791ff35d5a1b80d8899b3096352a827e770ed | |
parent | cfc527d2412c462c2b27e58db309cab620d2bf6a (diff) | |
download | Common-Interface-Project-efba28d731c315dc2da7755622167818c6278717.tar.gz Common-Interface-Project-efba28d731c315dc2da7755622167818c6278717.tar.bz2 Common-Interface-Project-efba28d731c315dc2da7755622167818c6278717.zip |
update Django and djangorestframework
-rw-r--r-- | blocks/authAPI/urls.py | 10 | ||||
-rw-r--r-- | blocks/requirements.txt | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/blocks/authAPI/urls.py b/blocks/authAPI/urls.py index 70c09332..3e49e940 100644 --- a/blocks/authAPI/urls.py +++ b/blocks/authAPI/urls.py @@ -1,12 +1,12 @@ -from django.conf.urls import url +from django.urls import re_path from authAPI import views as authAPI_views urlpatterns = [ # GitHub OAuth2 callback - url(r'^github-callback', authAPI_views.GitHubOAuth2, name='github-callback'), - url(r'^google-callback', authAPI_views.GoogleOAuth2), - url(r'^users/activate/(?P<uid>[\w-]+)/(?P<token>[\w-]+)/$', + re_path(r'^github-callback', authAPI_views.GitHubOAuth2, name='github-callback'), + re_path(r'^google-callback', authAPI_views.GoogleOAuth2), + re_path(r'^users/activate/(?P<uid>[\w-]+)/(?P<token>[\w-]+)/$', authAPI_views.activate_user), - url(r'user/token/', authAPI_views.CustomTokenCreateView.as_view()) + re_path(r'user/token/', authAPI_views.CustomTokenCreateView.as_view()) ] diff --git a/blocks/requirements.txt b/blocks/requirements.txt index 78d5c85a..af029350 100644 --- a/blocks/requirements.txt +++ b/blocks/requirements.txt @@ -12,11 +12,11 @@ click-plugins==1.1.1 click-repl==0.2.0 cryptography==42.0.7 defusedxml==0.7.1 -Django==3.2.25 +Django==4.2.13 django-cors-headers==3.13.0 django-filter==22.1 django-templated-mail==1.1.1 -djangorestframework==3.14.0 +djangorestframework==3.15.2 djangorestframework-simplejwt==5.3.1 djoser==2.2.2 drf-yasg==1.21.7 |