コード例 #1
0
ファイル: urls.py プロジェクト: VictorAguiarGuedes/tuirer-jc
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)
コード例 #2
0
ファイル: urls.py プロジェクト: pantoja/jornada-tuire
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'),
]
コード例 #3
0
    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/',
コード例 #4
0
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'),
]