from django.urls import path from users.views import ( ProfileView, ProfileEditView, UserLoginView, UserLogoutView, UserSignupView, FollowUserView, FollowersUserView, ) app_name = 'users' urlpatterns = [ path('perfil/<int:pk>/', ProfileView.as_view(), name="profile"), path('perfil/<int:pk>/editar/', ProfileEditView.as_view(), name="profile-edit"), path('login/', UserLoginView.as_view(), name="login"), path('logout/', UserLogoutView.as_view(), name="logout"), path('signup/', UserSignupView.as_view(), name="signup"), path('seguir/<int:pk>', FollowUserView.as_view(), name="seguir"), path('perfil/<int:pk>/seguidores', FollowersUserView.as_view(), name="seguidores"), ] #users(app_name):profile(name)
from django.urls import path, include from users.views import ProfileView, ProfileEditView, UserLoginView, \ UserLogoutView, UserSignupView app_name = 'users' urlpatterns = [ path('perfil/<int:pk>/', ProfileView.as_view(), name='profile'), path('perfil/<int:pk>/editar/', ProfileEditView.as_view(), name='profile-edit'), path('login/', UserLoginView.as_view(), name="login"), path('logout/', UserLogoutView.as_view(), name="logout"), path('cadastro/', UserSignupView.as_view(), name='signup'), ]
ProfileEditView, ProfileImageEditView, # UserCreateView, UserCreateDoneView, UserCreateCompleteView, ) app_name = 'users' urlpatterns = [ # Profile path('profile/<name>/', ProfileView.as_view(), name='profile'), path('profile/<name>/edit/', ProfileEditView.as_view(), name='profile_edit'), path('profile/<name>/image/edit/', ProfileImageEditView.as_view(), name='profile_image_edit'), # User login path('login/', Login.as_view(), name='login'), path('logout/', Logout.as_view(), name='logout'), # User create # path('user_create/', UserCreateView.as_view(), name='user_create'), path('user_create/done/', UserCreateDoneView.as_view(), name='user_create_done'), path('user_create/complete/<token>/', UserCreateCompleteView.as_view(), name='user_create_complete'), # Password reset path('password_reset/',
from django.urls import path from users.views import ( ProfileView, ProfileEditView, UserLoginView, UserLogoutView, UserSignupView, FollowersListView, ) app_name = 'users' urlpatterns = [ path('perfil/<int:pk>/', ProfileView.as_view(), name='profile'), path('perfil/<int:pk>/editar/', ProfileEditView.as_view(), name='edit'), path('login/', UserLoginView.as_view(), name='login'), path('logout/', UserLogoutView.as_view(), name='logout'), path('cadastro/', UserSignupView.as_view(), name='signup'), #Actions path('follow/<int:pk>/', FollowersListView.as_view(), name='follow'), ]