from django.urls import path
from user.views import SignupView, LoginView, FollowingView

urlpatterns = [
    path('signup', SignupView.as_view()),
    path('login', LoginView.as_view()),
    path('follow', FollowingView.as_view())
]
Esempio n. 2
0
 path('go/<slug:node_code>', NodeView.as_view(), name='node'),
 # 到某个节点下的实用节点链接
 path('go/<slug:node_code>/links', NodeLinkView.as_view(),
      name='node_link'),
 # 主题查看
 path('t/<slug:topic_sn>', TopicView.as_view(), name='topic'),
 # 主题投票
 path('topic/vote', TopicVoteView.as_view(), name='topic_vote'),
 # 主题收藏
 path('topic/favorite', FavoriteTopicView.as_view(), name='favorite_topic'),
 # 主题感谢
 path('topic/thanks', ThanksTopicView.as_view(), name='thanks_topic'),
 # 节点收藏
 path('node/favorite', FavoriteNodeView.as_view(), name='favorite_node'),
 # 用户注册
 path('signup', SignupView.as_view(), name='signup'),
 # 用户登录
 path('signin', SigninView.as_view(), name='signin'),
 # 用户退出
 path('signout', SignoutView.as_view(), name='signout'),
 # 用户设置
 path('settings', SettingView.as_view(), name='settings'),
 # 用户头像设置
 path('settings/avatar',
      AvatarSettingView.as_view(),
      name='settings_avatar'),
 # 用户手机设置
 path('settings/phone', PhoneSettingView.as_view(), name='settings_phone'),
 # 用户Email设置
 path('settings/email', EmailSettingView.as_view(), name='settings_email'),
 # 密码修改
Esempio n. 3
0
from django.urls import path

from user.views import SignupView

urlpatterns = [path('/signup', SignupView.as_view())]
Esempio n. 4
0
 # 到某个节点下的主题
 path('go/<slug:node_code>', NodeView.as_view(), name='node'),
 # 到某个节点下的实用节点链接
 path('go/<slug:node_code>/links', NodeLinkView.as_view(), name='node_link'),
 # 主题查看
 path('t/<slug:topic_sn>', TopicView.as_view(), name='topic'),
 # 主题投票
 path('topic/vote', TopicVoteView.as_view(), name='topic_vote'),
 # 主题收藏
 path('topic/favorite', FavoriteTopicView.as_view(), name='favorite_topic'),
 # 主题感谢
 path('topic/thanks', ThanksTopicView.as_view(), name='thanks_topic'),
 # 节点收藏
 path('node/favorite', FavoriteNodeView.as_view(), name='favorite_node'),
 # 用户注册
 path('signup', SignupView.as_view(), name='signup'),
 # 用户登录
 path('signin', SigninView.as_view(), name='signin'),
 # 用户退出
 path('signout', SignoutView.as_view(), name='signout'),
 # 用户设置
 path('settings', SettingView.as_view(), name='settings'),
 # 用户头像设置
 path('settings/avatar', AvatarSettingView.as_view(), name='settings_avatar'),
 # 用户手机设置
 path('settings/phone', PhoneSettingView.as_view(), name='settings_phone'),
 # 用户Email设置
 path('settings/email', EmailSettingView.as_view(), name='settings_email'),
 # 密码修改
 path('settings/password', PasswordSettingView.as_view(), name='settings_password'),
 # 发送随机码地址
Esempio n. 5
0
from django.conf.urls import url
from django.contrib.auth import views as auth_views

from question.models import Trend
from user.views import SignupView, SignupDoneView, UserSettingsView

app_name = 'user'

urlpatterns = [
    url(r'^login/', auth_views.LoginView.as_view(
        extra_context={"trends": Trend.get_trends()}
    )),
    url(r'^settings/', UserSettingsView.as_view()),
    url(r'^signup/$', SignupView.as_view(), name='signup'),
    url(r'^signup/done/$', SignupDoneView.as_view(), name='login'),
    url(r'^logout/$', auth_views.LogoutView.as_view(), name='logout'),
    url(r'^settings/$', UserSettingsView.as_view(), name='settings'),
]