add: profile avatar
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
from django.urls import path
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
|
||||
from . import views
|
||||
from . import viewsets
|
||||
|
||||
urlpatterns = [
|
||||
path("<int:pk>", views.ProfileView.as_view(), name="profile_page"),
|
||||
]
|
||||
path("<int:pk>", viewsets.ProfileViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update'}), name="profile_page"),
|
||||
#path("me", viewsets.ProfileViewSet.as_view(), name="my_profile_page"),
|
||||
] + static("/static/avatars/", document_root="./avatars")
|
Reference in New Issue
Block a user