url(r'^$', MainView.as_view(), name='main'), url(r'^about/$', TemplateView.as_view(template_name="about.html"), name='about'), url(r'^manual_ru/$', TemplateView.as_view(template_name="manual_ru.html"), name='manual_ru'), url(r'^manual_en/$', TemplateView.as_view(template_name="manual_en.html"), name='manual_en'), url(r'^en/terms/$', TemplateView.as_view(template_name="terms.html"), name='terms'), url(r'^en/policy/$', TemplateView.as_view(template_name="policy.html"), name='policy'), url(r'^ru/terms/$', TemplateView.as_view(template_name="terms.html"), name='terms_ru'), url(r'^ru/policy/$', TemplateView.as_view(template_name="policy.html"), name='policy_ru'), url(r'^options/$', TemplateView.as_view(template_name="payment/options.html"), name='pay_options'), url(r'^payment/$', not_guest_required(PaymentPage.as_view()), name='payment'), url(r'^payment_small_business/$', not_guest_required(PaymentPage.as_view(small_business=True)), name='payment_small_business'), url(r'^account/$', not_guest_required(TemplateView.as_view(template_name="users/account.html")), name='account'), url(r'^account/delete/$', not_guest_required(DeleteUserView.as_view()), name='account_delete'), url(r'^payment/success/$', PaymentSuccess.as_view(), name='payment_success'), url(r'^payment/cancel/$', TemplateView.as_view(template_name="payment/cancel.html"), name='payment_cancel'), (r'^payment/IPN/trytoguessit/', include('paypal.standard.ipn.urls')), ) urlpatterns += patterns('tools.views', url('^contacts/$', 'contact', name='contacts'), ) urlpatterns += patterns('', (r'^cache/', include('django_memcached.urls')), ) handler500 = 'tools.views.server_error'
from django.conf.urls import url from users.views import CreateUserView, DeleteUserView, EditUserViewForm, UsersListView app_name = 'users' urlpatterns = [ url(r'^$', UsersListView.as_view(), name='index', ), url(r'^create/', CreateUserView.as_view(), name='create', ), url(r'^delete/(?P<pk>\d+)', DeleteUserView.as_view(), name="delete", ), url(r'^edit/(?P<pk>\d+)', EditUserViewForm.as_view(), name="edit") ]
DonorRegisterView, HospitalRegisterView, DeleteUserView, ResendVerification, activate, ) urlpatterns = [ path("login/", LoginPageView.as_view(), name="login"), path("logout/", LogoutPageView.as_view(), name="logout"), path("register_donor/", DonorRegisterView.as_view(), name="register-donor"), path("register_hospital/", HospitalRegisterView.as_view(), name="register-hospital"), path("profile/delete", DeleteUserView.as_view(), name="delete-user"), path("activate/<str:uidb64>/<str:token>/", activate, name="activate"), path( "resend_verification_link/", ResendVerification.as_view(), name="resend-verification", ), path("password_change/", CustomPasswordChangeView.as_view(), name="password_change"), path( "password_change/done/", views.PasswordChangeDoneView.as_view(), name="password_change_done", ), path("password_reset/",
from users.api import UserAPI from users.views import SignUpView, SignUpSuccessView, DeleteUserView from django.conf.urls import url urlpatterns = [ # web urls url(r'^signup$', SignUpView.as_view(), name='signup'), url(r'^signup_success$', SignUpSuccessView.as_view(), name='signup_success'), url(r'^delete_user/(?P<pk>[0-9]+)$', DeleteUserView.as_view(), name="delete_user"), # api urls url(r'^api/0.1/signup$', UserAPI.as_view(), name="signup_api"), url(r'^api/0.1/delete_user/(?P<pk>[0-9]+)$', UserAPI.as_view(), name="delete_user_api") ]
from django.contrib import admin from django.urls import path from users.views import (RegisterView, GetSCRFToken, LoginView, LogoutView, DeleteUserView, GetUsersView, UpdateUserProfileView, GetUserProfile, FollowView, UnfollowView, GetFollowingView, GetFollowerView, GetOtherUserProfile, GetOthersFollowingView, GetOthersFollowerView, GetIfFollowView) urlpatterns = [ path('register', RegisterView.as_view()), path('login', LoginView.as_view()), path('logout', LogoutView.as_view()), path('delete', DeleteUserView.as_view()), path('all', GetUsersView.as_view()), path('update-profile', UpdateUserProfileView.as_view()), path('profile', GetUserProfile.as_view()), path('profile/<str:pk>', GetOtherUserProfile.as_view()), path('follow', FollowView.as_view()), path('unfollow', UnfollowView.as_view()), path('following', GetFollowingView.as_view()), path('follower', GetFollowerView.as_view()), path('following/<str:pk>', GetOthersFollowingView.as_view()), path('follower/<str:pk>', GetOthersFollowerView.as_view()), path('csrf', GetSCRFToken.as_view()), path('if-follow', GetIfFollowView.as_view()), ]
name='policy_ru'), url(r'^options/$', TemplateView.as_view(template_name="payment/options.html"), name='pay_options'), url(r'^payment/$', not_guest_required(PaymentPage.as_view()), name='payment'), url(r'^payment_small_business/$', not_guest_required(PaymentPage.as_view(small_business=True)), name='payment_small_business'), url(r'^account/$', not_guest_required( TemplateView.as_view(template_name="users/account.html")), name='account'), url(r'^account/delete/$', not_guest_required(DeleteUserView.as_view()), name='account_delete'), url(r'^payment/success/$', PaymentSuccess.as_view(), name='payment_success'), url(r'^payment/cancel/$', TemplateView.as_view(template_name="payment/cancel.html"), name='payment_cancel'), (r'^payment/IPN/trytoguessit/', include('paypal.standard.ipn.urls')), ) urlpatterns += patterns( 'tools.views', url('^contacts/$', 'contact', name='contacts'), )
ProfileView, ChangeEmailView, ChangePasswordView, DeleteUserView, CustomPasswordResetView, CustomPasswordResetDoneView, CustomPasswordResetCompleteView, CustomPasswordResetConfirmView, UserActiveOdersView, UserFinishedOdersView, OrderDetailView) urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('register/', RegisterView.as_view(), name='register'), path('activate/<uidb64>/<token>/', ActivateView.as_view(), name='activate'), path('change-email/<uidb64>/<token>/', ChangeEmailView.as_view(), name='change_email'), path('delete-user/', DeleteUserView.as_view(), name='delete_user'), path('logout/', LogoutView.as_view(), name='logout'), path('profile/', ProfileView.as_view(), name='profile'), path('active-orders/', UserActiveOdersView.as_view(), name='active_orders'), path('finished-orders/', UserFinishedOdersView.as_view(), name='finished_orders'), path('orders/<int:order_id>/', OrderDetailView.as_view(), name='order_detail'), path('change-password/', ChangePasswordView.as_view(), name='change_password'), path('password-reset/', CustomPasswordResetView.as_view(),
from django.urls import path from users.views import CreateUserView, AddProfileView, MakeStaffView, FullOwnInfoView, DeleteUserView, \ UpdateUserByUserView, ListUsersView, UpdateByStaffView urlpatterns = [ path('/create', CreateUserView.as_view()), path('/list', ListUsersView.as_view()), path('/<int:pk>/profile', AddProfileView.as_view()), path('/info', FullOwnInfoView.as_view()), path('/<int:pk>/make_staff', MakeStaffView.as_view()), path('/<int:pk>/delete', DeleteUserView.as_view()), path('/update_myself', UpdateUserByUserView.as_view()), path('/<int:pk>/update_by_staff', UpdateByStaffView.as_view()) ]