Skip to content

Commit 86f328d

Browse files
committed
Upgrade some dependencies
1 parent 5cf0cb9 commit 86f328d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mysite/mysite/urls.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,23 @@
1313
1. Import the include() function: from django.conf.urls import url, include
1414
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515
"""
16-
from django.urls import re_path, include
16+
from django.urls import re_path, path, include
1717
from django.contrib import admin
1818
from fcm_django.api.rest_framework import FCMDeviceViewSet, FCMDeviceAuthorizedViewSet
1919
from rest_framework.routers import DefaultRouter
2020
from rest_framework.documentation import include_docs_urls
21+
from rest_framework.schemas import get_schema_view
2122

2223
router = DefaultRouter()
2324
router.register(r'devices', FCMDeviceViewSet)
2425

2526
urlpatterns = [
2627
re_path(r'^admin/', admin.site.urls),
2728
re_path(r'^docs/', include_docs_urls(title='FCM django web demo')),
29+
path(
30+
"openapi",
31+
get_schema_view(title="FCM Django", description="FCM Django"),
32+
name="openapi-schema",
33+
),
2834
re_path(r'^', include(router.urls)),
2935
]

mysite/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
fcm-django==1.0.13
22
coreapi==2.3.1
33
django-cors-headers==3.6.0
4-
djangorestframework==3.14.0
4+
djangorestframework==3.15.1
55
django-sslserver==0.22
66
Django==4.2.11
77
six==1.15.0
88
urllib3===1.26.18
9+
pyyaml===6.0.1

0 commit comments

Comments
 (0)