from django.conf.urls import re_path from . import views urlpatterns = [ re_path('^$', views.home, name='home'), re_path('details/', views.details, name='details'), re_path('listing/', views.list, name='list'), ]
from django.conf.urls import url, re_path from . import views app_name = 'portal' urlpatterns = [ #url(r'^$', views.index, name='index'), url(r'^$', views.IndexView.as_view(), name='index'), url(r'^adminz/', views.RzAdmin, name='rz-admin'), re_path(r'^registerz/$', views.register, name='register'), re_path(r'^loginz/$', views.login, name='login'), #re_path(r'^user/(?P<pk>\d+)/profile/$', views.profile, name='profile'), #re_path(r'^user/(?P<pk>\d+)/profile/update/$', views.profile_update, name='profile_update'), #re_path(r'^user/(?P<pk>\d+)/pwdchange/$', views.pwd_change, name='pwd_change'), #re_path(r'^logout/$', views.logout, name='logout'), ]
# router.register(r'contact', contact_views.contact_collection) router.register(r'contact', contact_views.ContactViewSet) router.register(r'projects', project_view.ProjectViewSet) router.register(r'tasks', project_view.TaskViewSet) urlpatterns = [ path('admin/', admin.site.urls), #path('', home_view, name='homepage'), #path('about/', about_view, name='about'), #path('signup/', core_views.signup, name='signup'), #path('accounts/profile/', core_views.profile, name='profile'), #path('login/', auth_views.LoginView.as_view(template_name='login.html'), name='login'), #path('logout/', auth_views.LogoutView.as_view(template_name='logout.html'), name='logout'), #path('products/', include('products.urls', namespace="products")), #path('core/', include('core.urls')), re_path(r'^', include(router.urls)), re_path(r'^contact/', include('contact.urls')), re_path(r'^projects/', include('projects.urls')), re_path(r'^api/', include('api.urls')), path('auth/', include('rest_auth.urls')), path('auth/signup/', include('rest_auth.registration.urls')), path(r'api-token-auth/', obtain_jwt_token), path(r'api-token-refresh/', refresh_jwt_token), path('api/token/', jwt_views.TokenObtainPairView.as_view(), name='token_obtain_pair'), path('api/token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh'), re_path(r'^task_list/(?P<pk>[0-9]+)$', project_view.taskById), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
"""hw2 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.conf.urls import re_path from tweet.views import home, create_tweet, delete_tweet urlpatterns = [ re_path(r'^admin/', admin.site.urls), re_path(r'^$', home, name='home'), re_path(r'^create_tweet/$', create_tweet, name='create_tweet'), re_path(r'^delete_tweet/(?P<id>[\w-]+)/$', delete_tweet, name='delete_tweet'), ]
from django.conf.urls import re_path, include from . import views urlpatterns = [ # Dashboard re_path(r'^$', views.dashboard,name='activity_logger/dashboard'), # Dashboard: Locations re_path(r'^locate/$', views.locate,name='activity_logger/locate'), re_path(r'^locate_iframe/$', views.locate_iframe,name='activity_logger/locate_iframe'), re_path(r'^get_locations/$', views.get_locations,name='activity_logger/get_locations'), # Dashboard: Traffic re_path(r'^traffic/$', views.traffic,name='activity_logger/traffic'), # Dashboard: Path re_path(r'^path/(?P<id>\d+)/$', views.path,name='activity_logger/path'), # Dashboard: Entry re_path(r'^entry/(?P<id>\d+)/$', views.entry,name='activity_logger/entry'), ]
from django.conf.urls import re_path from . import views app_name = "shared_session" urlpatterns = [ re_path(r'^(?P<message>.+).js$', views.shared_session_view, name='share'), ]
from django.conf.urls import url, re_path from django.urls import path, re_path from . import views app_name = 'catalog' urlpatterns = [ path('', views.Index.as_view(), name='index'), # path('', views.index, name='index'), path('books/', views.BooKListView.as_view(), name='books'), path('authors/', views.AuthorListView.as_view(), name='authors'), re_path('^book/(?P<pk>\d+)', views.BookDetailView.as_view(), name='book-detail'), #url(r'^book/(?P<pk>\d+)$', views.BookDetailView.as_view(), name='book-detail'), ]
else: from django.urls import include, re_path from django.views.i18n import JavaScriptCatalog from django_comments_xtd import LatestCommentFeed from django_comments_xtd.views import XtdCommentListView from comp import views admin.autodiscover() urlpatterns = [ re_path(r'^$', views.HomepageView.as_view(), name='homepage'), re_path(r'^i18n/', include('django.conf.urls.i18n')), re_path(r'^articles/', include('comp.articles.urls')), re_path(r'^quotes/', include('comp.extra.quotes.urls')), re_path(r'^comments/', include('django_comments_xtd.urls')), re_path(r'^comments/$', XtdCommentListView.as_view(content_types=["articles.article", "quotes.quote"], paginate_by=10, page_range=5), name='comments-xtd-list'), re_path(r'^feeds/comments/$', LatestCommentFeed(), name='comments-feed'), re_path(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), re_path(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'), re_path(r'admin/', admin.site.urls),
from django.conf.urls import re_path from . import views urlpatterns = [ re_path(r'^project/$', views.report_project, name="report_project"), re_path(r'^dashboard/$', views.report_dashboard, name="report_dashboard"), re_path(r'^project/edit/$', views.report_project_edit, name="report_project_edit"), re_path(r'^project/dashboard/$', views.report_project_dashboard, name="report_project_dashboard"), re_path(r'^maintenance/$', views.report_maintenance, name="report_maintenance"), re_path(r'^maintenance/dashboard/$', views.report_maintenance_dashboard, name="report_maintenance_dashboard"), re_path(r'^maintenance/client/$', views.report_maintenance_client, name="report_maintenance_client"), re_path(r'^maintenance/client/edit/$', views.report_maintenance_client_edit, name="report_maintenance_client_edit"), re_path(r'^support/$', views.report_support, name="report_support"), re_path(r'^support/client/edit/$', views.report_support_edit, name="report_support_edit"), re_path(r'^edu/$', views.report_edu, name="report_edu"), re_path(r'^edu/client/edit$', views.report_edu_edit, name="report_edu_edit"), re_path(r'^etc/$', views.report_etc, name="report_etc"), re_path(r'^etc/client/edit$', views.report_etc_edit, name="report_etc_edit"), ]
# -*- coding: utf-8 -*- from django.conf.urls import re_path from ...core.conf import settings from . import views app_name = 'category' urlpatterns = [ re_path(r'^$', views.index, name='index'), re_path(r'^create/$', views.create, name='create'), re_path(r'^update/(?P<category_id>[0-9]+)/$', views.update, name='update'), ] if settings.ST_ORDERED_CATEGORIES: urlpatterns.extend([ re_path(r'^move-up/(?P<category_id>[0-9]+)/$', views.move_up, name='move_up'), re_path(r'^move-dn/(?P<category_id>[0-9]+)/$', views.move_dn, name='move_dn') ])
from django.views.decorators.csrf import csrf_exempt from django.conf.urls import re_path from tg import views import hashlib from django.conf import settings app_name = 'telegram' urlpatterns = [ re_path(r'^me/$', views.me, name='me'), re_path(r'^unlink/$', views.unlink, name='unlink'), re_path( r'^incoming/%s/$' % hashlib.md5(settings.TELEGRAM_TOKEN.encode('utf8')).hexdigest(), csrf_exempt(views.Incoming.as_view()), name='incoming', ), ]
from . import views from django.conf.urls import url, re_path enquiryUrlPattern = [ url(r'daily-rate-enquiry', views.daily_rate_enquiry_form), re_path(r'^contact-us-landing-page/$', views.contact_us_landing_page), ]
from django.conf.urls import re_path from . import views from django.conf import settings from django.conf.urls.static import static from .views import (PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, UserPostListView) urlpatterns = [ re_path(r'^$', PostListView.as_view(), name='blog-home'), re_path(r'about/$', views.about, name='blog-about'), re_path(r'^post/(?P<pk>\d{1,})/$', PostDetailView.as_view(), name='post-detail'), re_path(r'^post/new/$', PostCreateView.as_view(), name='post-create'), re_path(r'^post/(?P<pk>\d{1,})/update/$', PostUpdateView.as_view(), name='post-update'), re_path(r'^post/(?P<pk>\d{1,})/delete/$', PostDeleteView.as_view(), name='post-delete'), re_path(r'^user/(?P<username>.*)/$', UserPostListView.as_view(), name='user-posts'), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.conf.urls import re_path from .views import show_ruling urlpatterns = [ re_path(r'^(?P<slug>[\w-]+)/$', show_ruling, name='show_ruling'), ]
"""project_endpoint URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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 django.conf.urls import include, re_path from .views import welcome urlpatterns = [ path('admin/', admin.site.urls), # re_path( # route=r'^xxx$', # view=welcome, # name='welcome'), re_path(r'sm_ui/', include('app_sm_api.urls')), ]
# -*- coding: utf-8 -*- import django if django.VERSION < (2, 0): from django.conf.urls import url as re_path else: from django.urls import re_path from maintenance_mode.views import maintenance_mode_off, maintenance_mode_on urlpatterns = [ re_path(r'^off/$', maintenance_mode_off, name='maintenance_mode_off'), re_path(r'^on/$', maintenance_mode_on, name='maintenance_mode_on'), ]
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.conf.urls import url, include, re_path from django.contrib import admin from rest_framework.routers import DefaultRouter from room.views import * from User.views import * router = DefaultRouter() router.register(r'user', UserViewSet) router.register(r'meeting', MeetingViewSet) urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^api/', include(router.urls)), re_path(r'test/v1/user_create', userCreate), re_path(r'test/v1/user_login', userLogin), re_path(r'test/v1/change_password', changePassword), re_path(r'test/v1/get_meeting_info_month', getMeetingInfo_month), re_path(r'test/v1/get_meeting_info_week', getMeetingInfo_week), re_path(r'^test/v1/meeting_edit', meeting_update_view), re_path(r'^test/v1/meeting_cancel', meeting_delete_view), re_path(r'^test/v1/meeting_create', create_meeting), re_path(r'test/v1/google_reminder_create', createReminder), ]
from django.conf.urls import url, re_path from . import views urlpatterns = [re_path(r'^$', views.get_watershed, name='get_watershed')]
from django.conf.urls import re_path from .views import search urlpatterns = [ re_path(r'^$', search, name="search") ]
from django.conf.urls import re_path from . import views urlpatterns = [ re_path( r'^(?P<path>.+(\.pdf|\.zip|\.html|\.doc|\.docx|\.epub))$', views.sendfile, name='files_sendfile_view') ]
url(r'^register_handle/$', register_handle, name="register_handle"), url(r'^register_exist/$', register_exist, name="register_exist"), url(r'^login/$', login, name="login"), url(r'^login_handle/$', login_handle, name="login_handle"), url(r'^info/$', info, name="info"), url(r'^order/(\d+)$', order, name="order"), url(r'^site/$', site, name="site"), url(r'^publishers/$', publishers, name="publishers"), url(r'^changeInformation/$', changeInformation, name="changeInformation"), url(r'^check_user/$', check_user, name="check_user"), url('^myself_information/$', myself_information, name="myself_information"), url('^shoper_information/(.+)/$', shoper_information, name="shoper_information"), url('^message/$', message, name="message"), url('^person_message/$', person_message, name="person_message"), #url(r'^kefu_message/$', kefu_message, name="kefu_message"), url(r'^logout/$', logout, name="logout"), #显示验证码 url(r'^verify_show/$', verify_show, name="verify_show"), url(r'^verifycode/$', viewsUtil.verify_code, name="verifycode"), #修改密码 url(r'^changeInPwd/$', changeInPwd, name="changeInPwd"), #重置密码 url(r'^findpwdView/$', findpwdView, name="findpwdView"), #退货 url(r'^tuihuo/$', tuihuo, name="tuihuo"), re_path('^media/(?P<path>.*)/$', serve, {'document_root': settings.MEDIA_ROOT}), ]
from django.conf.urls import url, re_path from . import views urlpatterns = [ url(r'^create/$', views.order_create, name='order_create'), re_path(r'^order/(?P<order_id>\d+)/$', views.order_specific, name='order_specific'), re_path(r'^all-orders/$', views.order_all, name='order_all'), ]
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 import settings from django.conf.urls import include, url, re_path from django.contrib import admin from django.conf.urls.static import static from django.views.generic import RedirectView urlpatterns = [ re_path(r'^[/]?$', RedirectView.as_view(url='members/')), re_path(r'^admin/', admin.site.urls), #re_path(r'^admin/', include(admin.site.urls)), re_path(r'members/', include('members.urls')), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) """ if settings.DEBUG: import debug_toolbar urlpatterns += [ url(r'^__debug__/', include(debug_toolbar.urls)), ]
from django.conf.urls import url, re_path from django.urls import path, include from tercero import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^terceros/$', views.TercerosView.as_view(), name="terceros"), url(r'^terceros/crear/', views.CreateTercero.as_view(success_url="/terceros/"), name="crear"), re_path(r'^terceros/(?P<pk>\d+)/editar/$', views.UpdateTercero.as_view(success_url="/terceros/"), name='editar'), re_path(r'terceros/(?P<pk>\d+)/$', views.DetalleTerceroView.as_view(), name="tercero"), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.conf.urls import url, re_path from django.contrib import admin admin.autodiscover() from etl.views import * # Examples: # url(r'^$', 'gettingstarted.views.home', name='home'), # url(r'^blog/', include('blog.urls')), urlpatterns = [ re_path(r'^api/events/list$', EventsListView.as_view()), re_path(r'^admin/', admin.site.urls), re_path(r'^', FrontendAppView.as_view()), ]
from django.conf.urls import re_path from rango import views app_name = 'rango' urlpatterns = [ re_path(r'^$', views.index, name='index'), re_path(r'^about/$', views.about, name='about'), re_path(r'^category/add/$', views.add_category, name='add_category'), re_path(r'^category/(?P<category_name_slug>[\w\-]+)/$', views.show_category, name='show_category'), re_path(r'^category/(?P<category_name_slug>[\w\-]+)/add/$', views.add_page, name='add_page'), ]
def get_urls(): return [ re_path(r'^rescan$', RescanCommand.as_view(), name='rescan'), ]
from django.conf.urls import re_path from . import views app_name = 'groups' urlpatterns = [ re_path(r'^$', views.ListGroups.as_view(), name='all'), re_path(r'^new/', views.CreateGroup.as_view(), name='create'), re_path(r'posts/in/(?P<slug>[-\w]+)/$', views.SingleGroup.as_view(), name='single'), re_path(r'join/(?P<slug>[-\w]+)/$', views.JoinGroup.as_view(), name='join'), re_path(r'leave/(?P<slug>[-\w]+)/$', views.LeaveGroup.as_view(), name='leave'), ]
def get_urls(): return [ re_path(r'^machine/add', AddMachineCommand.as_view(), name='machine_add'), ]
from django.conf.urls import re_path from .views import ( AppointmentCreateView, AppointmentDeleteView, AppointmentDetailView, AppointmentListView, AppointmentUpdateView, ) urlpatterns = [ # List and detail views re_path(r'^$', AppointmentListView.as_view(), name='list_appointments'), re_path(r'^(?P<pk>[0-9]+)$', AppointmentDetailView.as_view(), name='view_appointment'), # Create, update, delete re_path(r'^new$', AppointmentCreateView.as_view(), name='new_appointment'), re_path(r'^(?P<pk>[0-9]+)/edit$', AppointmentUpdateView.as_view(), name='edit_appointment'), re_path(r'^(?P<pk>[0-9]+)/delete$', AppointmentDeleteView.as_view(), name='delete_appointment'), ]
def get_urls(): return [ re_path(r'^add$', AddCommand.as_view(), name='add'), ]
# -*- coding: utf-8 -*- import django from django.contrib import admin if django.VERSION < (2, 0): from django.conf.urls import url as re_path else: from django.urls import re_path from django.http import HttpResponse urlpatterns = [ re_path(r'^$', lambda x: HttpResponse(), name='root'), re_path(r'^admin/', admin.site.urls), ]
# but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. from django.conf.urls import re_path from django.contrib import admin from django.contrib.auth.views import LogoutView from helpers.mixins import FeatureFlowView import student.views admin.autodiscover() urlpatterns = [ # profile management re_path(r'^user/logout/$', LogoutView.as_view(next_page='/')), re_path(r'^unsubscribe/(?P<id>[\w.@+-]+)/(?P<token>[\w.:\-_=]+)/$', student.views.unsubscribe), re_path(r'^user/settings/$', student.views.UserView.as_view()), re_path( r'^delete_account/$', FeatureFlowView.as_view(feature_name='DELETE_ACCOUNT', allow_unauthenticated=False)), # timetable management re_path(r'^user/timetables/$', student.views.UserTimetableView.as_view()), re_path(r'^user/timetables/(?P<sem_name>.+?)/(?P<year>[0-9]{4})/$', student.views.UserTimetableView.as_view()), re_path( r'^user/timetables/(?P<sem_name>.+)/(?P<year>[0-9]{4})/(?P<tt_name>.+)/$', student.views.UserTimetableView.as_view()),
if django.VERSION < (2, 0): from django.conf.urls import include, url as re_path else: from django.urls import include, re_path from django.http import HttpResponse from .views import ( force_maintenance_mode_off_view, ForceMaintenanceModeOffView, force_maintenance_mode_on_view, ForceMaintenanceModeOnView, ) urlpatterns = [ re_path(r'^$', lambda x: HttpResponse(), name='root'), re_path(r'^maintenance-mode-redirect/$', lambda x: HttpResponse(), name='maintenance_mode_redirect'), re_path(r'^maintenance-mode-off-view-func/$', force_maintenance_mode_off_view, name='maintenance_mode_off_view_func'), re_path(r'^maintenance-mode-off-view-class/$', ForceMaintenanceModeOffView.as_view(), name='maintenance_mode_off_view_class'), re_path(r'^maintenance-mode-on-view-func/$',
from django.conf import settings from django.conf.urls.static import static from rest_framework import routers from django.conf.urls import url, include, re_path from .views import UserViewSet router = routers.DefaultRouter() router.register(r'users', UserViewSet, base_name='users') app_name = "users" urlpatterns = [re_path(r'^', include(router.urls))] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
import django from django.conf import settings from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic import TemplateView if django.VERSION[:2] < (2, 0): from django.conf.urls import include, url as re_path else: from django.urls import include, re_path from django_comments_xtd import LatestCommentFeed from simple import views admin.autodiscover() urlpatterns = [ re_path(r'^$', views.HomepageView.as_view(), name='homepage'), re_path(r'^admin/', admin.site.urls), re_path(r'^articles/', include('simple.articles.urls')), re_path(r'^comments/', include('django_comments_xtd.urls')), re_path(r'^feeds/comments/$', LatestCommentFeed(), name='comments-feed'), ] if settings.DEBUG: urlpatterns += staticfiles_urlpatterns()
from django.conf.urls import re_path from . import views urlpatterns = [ re_path(r'^$', views.index, name='index'), re_path(r'^(?P<room_name>[^/]+)/$', views.room, name='room'), ]
from django.conf.urls import include from django.conf.urls import re_path from django.contrib import admin from django.views.generic import TemplateView urlpatterns = [ re_path(r'^$', TemplateView.as_view(template_name='index.html'), name='home'), re_path(r'^appointments/', include('reminders.urls')), # Include the Django admin re_path(r'^admin/', admin.site.urls), ]
from django.conf.urls import include, re_path from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin admin.autodiscover() urlpatterns = [ re_path(r'^admin/', admin.site.urls), re_path(r'^cookies/', include('cookie_consent.urls')), re_path(r'', include('core.urls')), ] urlpatterns += staticfiles_urlpatterns()
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.conf.urls import re_path, include from django.urls import path from django.contrib import admin from django.conf import settings from PhoneReviews.views import signup from django.views.static import serve from django.contrib.auth.views import login, logout urlpatterns = [ path('admin/', admin.site.urls), path('phonereviews/', include('phonereviewsapp.urls')), path('accounts/', include('django.contrib.auth.urls')), path('accounts/logout/', logout, name='logout'), path('signup/', signup, name='signup'), ] if settings.DEBUG: urlpatterns += [ re_path(r'^media/(?P<path>.*)$', serve, { 'document_root': settings.MEDIA_ROOT, }), ]
url(r'^api/autoalbumgen', views.AutoAlbumGenerateView.as_view()), url(r'^api/autoalbumtitlegen', views.RegenerateAutoAlbumTitles.as_view()), url(r'^api/searchtermexamples', views.SearchTermExamples.as_view()), url(r'^api/locationsunburst', views.LocationSunburst.as_view()), url(r'^api/locationtimeline', views.LocationTimeline.as_view()), url(r'^api/stats', views.StatsView.as_view()), url(r'^api/locclust', views.LocationClustersView.as_view()), url(r'^api/photocountrycounts', views.PhotoCountryCountsView.as_view()), url(r'^api/photomonthcounts', views.PhotoMonthCountsView.as_view()), url(r'^api/wordcloud', views.SearchTermWordCloudView.as_view()), url(r'^api/similar', views.SearchSimilarPhotosView.as_view()), url(r'^api/watcher/photo', views.IsPhotosBeingAddedView.as_view()), url(r'^api/watcher/autoalbum', views.IsAutoAlbumsBeingProcessed.as_view()), url(r'^api/auth/token/obtain/$', TokenObtainPairView.as_view()), url(r'^api/auth/token/refresh/$', TokenRefreshView.as_view()), url(r'^media/(?P<path>.*)/(?P<fname>.*)', views.MediaAccessFullsizeOriginalView.as_view(), name='media'), # url(r'^api/createalbumcase/$', views.AlbumCaseCreateView.as_view()), url(r'^api/rqavailable/$', views.QueueAvailabilityView.as_view()), url(r'^api/rqjobstat/$', views.RQJobStatView.as_view()), url(r'^api/rqjoblist/$', views.ListAllRQJobsView.as_view()), url(r'^api/nextcloud/listdir', nextcloud_views.ListDir.as_view()), url(r'^api/nextcloud/scanphotos', nextcloud_views.ScanPhotosView.as_view()), re_path(r'^api/upload/(?P<filename>[^/]+)$', views.UploadView.as_view()) ] urlpatterns += [url('api/django-rq/', include('django_rq.urls'))] # urlpatterns += [url(r'^silk/', include('silk.urls', namespace='silk'))]
from django.conf.urls import include, url, re_path from .views import dispatcher from . import views app_name = 'website' urlpatterns = [ # Main pages dispatcher re_path(r'^$', dispatcher, name="home"), re_path(r'^(?P<permalink>.+)/$', dispatcher, name="dispatcher"), ]
# -*- coding: utf-8 -*- import django if django.VERSION < (2, 0): from django.conf.urls import url as re_path else: from django.urls import re_path from maintenance_mode import views urlpatterns = [ re_path(r'^off/$', views.maintenance_mode_off, name='maintenance_mode_off'), re_path(r'^on/$', views.maintenance_mode_on, name='maintenance_mode_on'), ]