from django.urls import path from account.views import Login, Logout, RegisterView from .api import user_list, user_details, UserViewSet from zoomit.urls import router router.register(r'users', UserViewSet) urlpatterns = [ path('login/', Login.as_view(), name='login'), path('logout/', Logout.as_view(), name='logout'), path('register/', RegisterView.as_view(), name='register'), # path('api/users/', UserViewSet.as_view(), name='users_list'), ]
from rest_framework.authtoken.views import obtain_auth_token # app_name = 'account' urlpatterns = [ path('change_password/', ChangePasswordView.as_view(), name="change-password"), path('update/t/', update_teacher_view, name="update-delete-teacher"), path('update/s/', update_student_view, name="update-delete-student"), path('login/', ObtainAuthTokenView.as_view(), name="login"), path('register/a/', registration_admin_view, name="register-admin"), path('register/t/', TeacherRegisterView.as_view(), name="register-teacher"), path('register/s/', StudentRegisterView.as_view(), name="register-student"), path('logout/', Logout.as_view(), name="logout"), path('degree-list/', DegreeListView.as_view(), name="degree-list"), path('get-account/', AccountView.as_view(), name='account'), path('teacher-list/', TeacherListView.as_view(), name='teacher-list'), path('teacher-detail/<str:pk>/', TeacherRetrieveView.as_view(), name='teacher-detail'), path('teacher-ranking/<str:pk>/', RatingView.as_view(), name='teacher-ranking'), path('teacher-feedback-list-create/<str:pk>/', FeedbackView.as_view(), name='teacher-feedback'), ]
# -*- coding: utf8 -*- from account.views import AuthVk from account.views import AuthSecureLink from account.views import Summary from account.views import Logout from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^auth/vk/$', AuthVk.as_view(), name='auth_vk'), url(r'^auth/secure_link/$', AuthSecureLink.as_view(), name='auth_secure_link'), url(r'^summary/$', Summary.as_view(), name='account_summary'), url(r'^auth/logout/$', Logout.as_view(), name='auth_logout') )
urlpatterns = patterns('', # Examples: # url(r'^$', 'eestecnet.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$',view,name='home'), url(r'^news/$', ListView.as_view(model=Entry)), url(r'^news/(?P<pk>[-_\w]+)/$', DetailView.as_view(model=Entry)), url(r'^events/$', InternationalEvents.as_view(), name='events',), url(r'^teams/$', TeamList.as_view(),name='teams'), url(r'^cities/$', CommitmentList.as_view(),name='cities'), url(r'^events/(?P<slug>[-\w]+)/$', EventDetail.as_view(), name='event'), url(r'^events/(?P<slug>[-\w]+)/apply$', ApplyToEvent.as_view(), name='eventapplication'), url(r'^events/(?P<slug>[-\w]+)/confirm/$', confirm_event, name='eventconfirmation'), url(r'^events/(?P<slug>[-\w]+)/transportation/$', FillInTransport.as_view(), name='eventtransportation'), url(r'^cities/(?P<slug>[-\w]+)/$', DetailView.as_view(model=Member), name='city'), url(r'^teams/(?P<slug>[-\w]+)/$', DetailView.as_view(model=Member), name='team'), url(r'^people/$', EestecerList.as_view(), name='people'), url(r'^people/me/$', EestecerUpdate.as_view(), name='userupdate'), url(r'^people/(?P<slug>[-\w]+)/$', EestecerProfile.as_view(), name='user'), url(r'^login/', Login.as_view(), name='login'), url(r'^logout/', Logout.as_view(), name='logout'), url(r'^register/', EestecerCreate.as_view(), name='register'), url(r'^admin/', include(admin.site.urls)), url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root':MEDIA_ROOT}), )
from django.urls import path, include from rest_framework import routers from account.views import registration_view, Logout, ChangePasswordView, AccountViewSet from rest_framework.authtoken.views import obtain_auth_token app_name = 'account' router = routers.DefaultRouter() router.register(r'accounts', AccountViewSet, basename='accounts') urlpatterns = [ path('register', registration_view), path('login', obtain_auth_token), path('logout', Logout.as_view()), path('change_password', ChangePasswordView.as_view()), path('', include(router.urls)) ]
# coding=utf8 from django.conf.urls import patterns, url from account.views import Login, Signup, Logout, ConfirmEmail, ResetPassword, ResetPasswordToken, ChangePassword urlpatterns = patterns( "", url(r"^login/$", Login.as_view(), name="acct_login"), url(r"^signup/$", Signup.as_view(), name="acct_signup"), url(r"^logout/$", Logout.as_view(), name="acct_logout"), url(r"^confirm_email/(?P<key>\w+)/$", ConfirmEmail.as_view(), name="acct_confirm_email"), url(r"^password/change/$", ChangePassword.as_view(), name="acct_password"), url(r"^password/reset/$", ResetPassword.as_view(), name="acct_password_reset"), url( r"^password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$", ResetPasswordToken.as_view(), name="acct_password_reset_token", ), )