Skip to content

Commit 864e870

Browse files
committed
update: djangorestframework 의존성 추가
1 parent de1f199 commit 864e870

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pyconkr/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"django.contrib.sessions",
3838
"django.contrib.messages",
3939
"django.contrib.staticfiles",
40+
41+
# djangorestframework
42+
"rest_framework",
4043
]
4144

4245
MIDDLEWARE = [

pyconkr/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
1616
from django.contrib import admin
17-
from django.urls import path
17+
from django.urls import path, include
1818

1919
urlpatterns = [
20+
path('api-auth/', include('rest_framework.urls')),
2021
path("admin/", admin.site.urls),
2122
]

requirements.txt

150 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)