from django.conf.urls import url from matchup import views as matchup_views from matchup.views import ListCreateMatches, ListParks, \ CreateFeedbacks, DetailPark, DetailUpdateMatch, \ DetailUpdateFeedback, \ JoinMatch, DeclineMatch, ConfirmMatch, \ CreateCourts, LeaveMatch, ChallengeCreateMatch, DetailUpdateCourt from users.views import ListUsers, CreateUser, DetailUpdateUser, \ ObtainAuthToken urlpatterns = ( url(r'^users/$', ListUsers.as_view(), name='api_list_users'), url(r'^users/create/$', CreateUser.as_view(), name='api_create_user'), url(r'^users/(?P<pk>\d+)/$', DetailUpdateUser.as_view(), name='api_detail_update_user'), url(r'^api-token-auth/$', ObtainAuthToken.as_view(), name='api_obtain_auth_token'), url(r'^parks/$', ListParks.as_view(), name='api_list_parks'), url(r'^parks/(?P<pk>\d+)', DetailPark.as_view(), name='api_park_detail'), url(r'^matches/$', ListCreateMatches.as_view(), name='api_list_create_matches'), url(r'^matches/challenge/$', ChallengeCreateMatch.as_view(), name='api_challenge'), url(r'^matches/(?P<pk>\d+)/$', DetailUpdateMatch.as_view(), name='api_detail_update_match'), url(r'^matches/(?P<pk>\d+)/join/$', JoinMatch.as_view(), name='api_join_match'), url(r'^matches/(?P<pk>\d+)/leave/$', LeaveMatch.as_view(), name='api_leave_match'), url(r'^matches/(?P<pk>\d+)/confirm/$', ConfirmMatch.as_view(), name='api_confirm_match'),
2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import include, url from django.contrib import admin from freds_list import settings from fredslist.views import PostDetail, PostList, CreatePost, EditPost, DeletePost, CategoryList, StateList from users.views import CreateUser from django.conf.urls.static import static urlpatterns = [ #################### REGISTRATION AND HOMEPAGE ########## url(r'^admin/', include(admin.site.urls)), url(r'^', include('django.contrib.auth.urls')), url(r'^$', StateList.as_view(), name="home"), url(r'^register/', CreateUser.as_view(), name='register'), #################### CATEGORIES and SUBCATEGORIES ########## url(r'^categories/', CategoryList.as_view(), name="category_list"), ################## GENERAL POST URLS ############## url(r'^posts/(?P<pk>\d+)/$', PostDetail.as_view(),name='post_detail'), url(r'^posts/', PostList.as_view(), name="posts"), url(r'^create_post/$', CreatePost.as_view(), name='post_create'), url(r'^update_post/(?P<pk>\d+)', EditPost.as_view(), name='post_edit'), url(r'^delete_post/(?P<pk>\d+)', DeletePost.as_view(), name='post_delete'), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Add an import: from blog import urls as blog_urls 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import include, url from django.contrib import admin from django.contrib.auth.decorators import login_required from bookmark.views import CreateBookmark, BookmarkDetail from users.views import CreateUser, ListBookmark, ListProfile, BookmarkDelete, BookmarkUpdate urlpatterns = [ url(r"$^", ListBookmark.as_view(), name="list_bookmarks"), url(r"^admin/", include(admin.site.urls)), url(r"^login/register/", CreateUser.as_view(), name="register"), url(r"^", include("django.contrib.auth.urls")), url(r"^accounts/profile", login_required(ListProfile.as_view()), name="list_profile"), url(r"^create/$", login_required(CreateBookmark.as_view()), name="bookmark_create"), url(r"(?P<pk>\d+)/$", BookmarkDetail.as_view(), name="bookmark_detail"), url(r"(?P<short_link>\w+)/$", "bookmark.views.link", name="link"), url(r"delete/(?P<pk>\d+)", BookmarkDelete.as_view(), name="delete_bookmark"), url(r"edit/(?P<pk>\d+)", BookmarkUpdate.as_view(), name="update_bookmark"), ]
from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from rest_framework.routers import DefaultRouter from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token from orders.views import OrderViewSet from products.views import ProductViewSet from users.views import CreateUser router = DefaultRouter() router.register(r'products', ProductViewSet) router.register(r'orders', OrderViewSet, base_name='Order') urlpatterns = [ url(r'^register', CreateUser.as_view()), url(r'^api-token-auth/', obtain_jwt_token), url(r'^api-token-refresh/', refresh_jwt_token), url(r'^', include(router.urls)), url(r'^categories/', include('categories.urls')), url(r'^carts/', include('carts.urls')), url(r'^admin/', admin.site.urls), ] if settings.DEBUG: import debug_toolbar urlpatterns = [ url(r'^__debug__/', include(debug_toolbar.urls)), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + urlpatterns
# users/urls.py from django.conf.urls import url from users.views import LoginUser, CreateUser, LoginUser, UserRetrieveUpdateAPIView urlpatterns = [ url(r'^create/$', CreateUser.as_view()), url(r'^login/$', LoginUser.as_view()), url(r'^update/$', UserRetrieveUpdateAPIView.as_view()), ]
# Examples: # url(r'^$', 'RyndaRebuild.views.home', name='home'), # url(r'^RyndaRebuild/', include('RyndaRebuild.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^$', 'message.views.list'), url(r'', include('social_auth.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^admin-tools/', include('admin_tools.urls')), url(r'^info/', include('core.urls')), url(r'^logout$', 'message.views.logout_view'), url(r'^message/', include('message.urls')), url(r'^register$', CreateUser.as_view()), url(r'^t/(?P<slug>[a-z_0-9-]+)$', 'message.views.list'), url(r'^t/(?P<slug>)message/', include('message.urls')), url(r'^user/', include('users.urls')), ) urlpatterns += patterns('django.contrib.auth.views', url(r'^login$', 'login', {'template_name': 'login.html'}), url(r'^password/reset$', 'password_reset', ), url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]{1,13})-(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', 'password_reset_confirm',), url(r'^password/reset/complete$', 'password_reset_complete'), url(r'^password/reset/done',
1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Add an import: from blog import urls as blog_urls 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import include, url from django.contrib import admin from django.contrib.auth.decorators import login_required from bookmark.views import CreateBookmark, BookmarkDetail from users.views import CreateUser, ListBookmark, ListProfile, BookmarkDelete, BookmarkUpdate urlpatterns = [ url(r'$^', ListBookmark.as_view(), name='list_bookmarks'), url(r'^admin/', include(admin.site.urls)), url(r'^login/register/', CreateUser.as_view(), name='register'), url(r'^', include('django.contrib.auth.urls')), url(r'^accounts/profile', login_required(ListProfile.as_view()), name='list_profile'), url(r'^create/$', login_required(CreateBookmark.as_view()), name='bookmark_create'), url(r'(?P<pk>\d+)/$', BookmarkDetail.as_view(), name='bookmark_detail'), url(r'(?P<short_link>\w+)/$', 'bookmark.views.link', name='link'), url(r'delete/(?P<pk>\d+)', BookmarkDelete.as_view(), name='delete_bookmark'), url(r'edit/(?P<pk>\d+)', BookmarkUpdate.as_view(), name='update_bookmark') ]
"""MoneyManagementSystem URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from users.views import CreateUser,Login,UserHome,AddExpense from django.contrib.auth.decorators import login_required urlpatterns = [ path('create',CreateUser.as_view(),name="usrcreate"), path('login',Login.as_view(),name="login"), path('home',login_required(UserHome.as_view()),name="home"), path('addexpense',login_required(AddExpense.as_view()),name="addexpense"), ]
The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path from users.views import LoginView, logout, CreateUser from blog.views import home, CreatePost, post_detail, all_blogs urlpatterns = [ path('admin/', admin.site.urls), path('blogs/<int:pk>', post_detail, name='post_detail'), path('blogs', all_blogs, name='blogs'), path('login', LoginView.as_view(), name='login_page'), path('logout', logout, name="logout_page"), path('new-post', CreatePost.as_view(), name='post_form'), path('signup', CreateUser.as_view(), name='signup_page'), path('', home, name="home_page"), ]
from django.urls import path from users.views import CreateUser, EmailAuth, PasswordResetView, LoginUser, LogoutUser, CommentViewSet from rest_framework import routers router = routers.SimpleRouter() urlpatterns = [ path('registration/', CreateUser.as_view({'post': 'create'}), name='registration'), path('email_auth/', EmailAuth.as_view({ 'post': 'create', 'get': 'get' }), name='email_auth'), path('reset_password/', PasswordResetView.as_view({ 'post': 'create', 'get': 'get' }), name='reset_password'), path('login/', LoginUser.as_view({'post': 'login_user'}), name='login'), path('logout/', LogoutUser.as_view({'post': 'logout_user'}), name='logout'), path('comment_create/', CommentViewSet.as_view({'post': 'create'}, name='comment_create')) ]
from django.contrib import admin from users.views import (AppointmentRequestView, RequestedPatientList, ApprovelPatientList, ApprovalRequestView, UserDetailView, DoctorListView, MyProfileView, CreateUser, AddPrescriptionView, ListPrescriptionView, DoctorListSpecialityView, PatientAppoinmentListView, RejectRequestView) urlpatterns = [ url(r'^user/list-patient-appoinments/$', PatientAppoinmentListView.as_view()), url(r'^add-prescription/(?P<user_id>[0-9]+)/$', AddPrescriptionView.as_view()), url(r'^list-prescription/$', ListPrescriptionView.as_view()), url(r'^user/(?P<user_id>[0-9]+)/$', UserDetailView.as_view()), url(r'^user/$', CreateUser.as_view()), url(r'^user/my-profile/$', MyProfileView.as_view()), url(r'^user/doctor-list/speciality-wise/$', DoctorListSpecialityView.as_view()), url(r'^user/doctor-list/$', DoctorListView.as_view()), url(r'^appoinment-request/(?P<doctor_id>[0-9]+)/$', AppointmentRequestView.as_view()), url(r'^approval-request/(?P<patient_id>[0-9]+)/$', ApprovalRequestView.as_view()), url(r'^requested-patient-list/$', RequestedPatientList.as_view()), url(r'^approved-patient-list/$', ApprovelPatientList.as_view()), url(r'^approved-patient-list/$', ApprovelPatientList.as_view()), url(r'^reject-request/(?P<patient_id>[0-9]+)/$', RejectRequestView.as_view()), ]
from django.conf.urls import url from users.views import CreateUser, LoginUser, ChangePassword, ForgotPassword, CheckUsernameExists, UserProfileCompletionMeter, UserProfileEvents, Logout, UserProfile, UserProfileStats urlpatterns = [ url(r'^create-user/$', CreateUser.as_view(), name="create_user"), url(r'^login/$', LoginUser.as_view(), name="login"), url(r'^logout/$', Logout.as_view(), name="logout"), url(r'^forgot-password/$', ForgotPassword.as_view(), name="forgot_password"), url(r'^change-password/$', ChangePassword.as_view(), name="change_password"), url(r'^user-exists/$', CheckUsernameExists.as_view(), name="user_exists"), url(r'^user-meter/$', UserProfileCompletionMeter.as_view(), name="user_meter"), url(r'^update-info/$', UserProfile.as_view(), name="update_info"), # my profile page #url(r'^my-profile/$', UserProfile.as_view(), name="my_profile"), url(r'^my-profile/overview/$', UserProfileEvents.as_view(), name="my_overview"), url(r'^my-profile/profile/$', UserProfile.as_view(), name="my_profile"), #url(r'^my-profile/notification/$', UserProfile.as_view(), name="my_notify"), url(r'^my-profile/stats/$', UserProfileStats.as_view(), name="my_stat"), ]