from django.urls import path from web.views import IndexView, DetailsView, TalkDetail urlpatterns = [ path(r'talk/<slug:slug>', TalkDetail.as_view(), name="talk_details"), path(r'<path:path>', DetailsView.as_view(), name="details"), path('', IndexView.as_view()), ]
"""web URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/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. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from web.views import IndexView, LoginView, LogoutView, BaseView urlpatterns = [ url(r'^$', IndexView.as_view()), url(r'^auth$', LoginView.as_view()), url(r'^login$', LoginView.as_view()), url(r'^logout$', LogoutView.as_view()), url(r'^base$', BaseView.as_view()) ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
"""devcentry URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: 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 web.views import IndexView urlpatterns = [ url(r'^$', IndexView.as_view(), name='index'), url(r'^admin/', include(admin.site.urls)), url(r'^i18n/', include('django.conf.urls.i18n')), ]
def load_homescreen(self): IndexView().get_queryset()
# -*- encoding: utf-8 -*- from django.conf.urls import patterns, url from web.views import IndexView urlpatterns = patterns('', url(r'^$', IndexView.as_view(), name="web.index"), )
# coding: utf-8 from django.conf.urls import patterns, url, include from rest_framework.routers import DefaultRouter from api import views as api_view from web.views import IndexView router = DefaultRouter() router.register(r'api', api_view.SnippetViewSet) urlpatterns = patterns('', url(r'^$', IndexView.as_view()), url(r'^', include(router.urls)), )
from web.views import IndexView, AdminPanelView, View404, view_500 extra = getattr(settings, setting_name('TRAILING_SLASH'), True) and '/' or '' urlpatterns = [ path('i18n/', include('django.conf.urls.i18n')), path( 'robots.txt', TemplateView.as_view(template_name='web/robots.txt', content_type='text/plain')), ] urlpatterns += i18n_patterns( path('reservation/', include('make_queue.urls')), path('admin/', AdminPanelView.as_view(), name='adminpanel'), path('', IndexView.as_view(), name='front-page'), path('news/', include('news.urls')), path('contentbox/', include('contentbox.urls')), path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT}), # local only, nginx in prod path('checkin/', include('checkin.urls')), path('committees/', include('groups.urls')), ContentBox.url('about'), ContentBox.url('apply'), ContentBox.url('makerspace'), ContentBox.url('cookies'), ContentBox.url('rules'), path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'), prefix_default_language=False, )
# -*- coding: utf-8 -*- from django.urls import path, re_path from web.views import ( IndexView, MenuView, NextTicketView, ProcessingView, TicketPageView, ) urlpatterns = [ path('menu', MenuView.as_view(), name='menu'), path('next', NextTicketView.as_view(), name='next_ticket'), path('processing', ProcessingView.as_view(), name='processing'), re_path('get_ticket/(?P<service>.*)', TicketPageView.as_view(), name='get_ticket'), path('welcome', IndexView.as_view(), name='index'), ]
from django.conf.urls import url, include from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from web.views import IndexView, RedisListView urlpatterns = [ url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^admin/', admin.site.urls), url(r'^$', IndexView.as_view(), name='index'), url(r'^redis/', RedisListView.as_view(), name='redis'), url(r'^soluciones/', include('web_soluciones.urls', namespace='web_soluciones')), url(r'^casos_exito/', include('web_casos_exito.urls', namespace='web_casos_exito')), url(r'^web/', include('web.urls', namespace='web')), url(r'^feria/', include('web_contactos.urls', namespace='contactos')), url(r'^tinymce/', include('tinymce.urls')), url(r'^rosetta/', include('rosetta.urls')), ] if settings.DEBUG: import debug_toolbar urlpatterns = [ url(r'^__debug__/', include(debug_toolbar.urls)), ] + urlpatterns urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL,
"""AniHub URL Configuration 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 web.views import IndexView urlpatterns = [ path('home/', IndexView.as_view()), path('admin/', admin.site.urls), ]
The `urlpatterns` list routes URLs to views. For more information please see: 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, patterns from django.conf.urls.static import static from test_assesment.settings import STATIC_URL, STATIC_ROOT from web.views import IndexView urlpatterns = patterns('', url(r'^api/', include('api.urls'), name="api-urls"), url(r'^$', IndexView.as_view(), name="index_view"), ) urlpatterns += patterns('', url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT}), ) urlpatterns += static(STATIC_URL, document_root=STATIC_ROOT)
"""openarticle URL Configuration 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, include from web.views import IndexView urlpatterns = [ path('', IndexView.as_view(), name='index'), path('admin/', admin.site.urls), path('accounts/', include('web.accounts.urls')), path('articles/', include('web.articles.urls')), ]
Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url, include from django.contrib import admin from parse_app.views import ParserView from web.views import IndexView, ShareView, TradersView, AnaliticsView, DeltaView urlpatterns = [ url(r'^admin/', admin.site.urls), url( r'^api/', include([ url(r'^$', IndexView.as_view(api=True), name='index'), url(r'^(?P<share_name>[\d\w]+)/$', ShareView.as_view(api=True)), url(r'^(?P<share_name>[\d\w]+)/analytics$', AnaliticsView.as_view(api=True)), url(r'^(?P<share_name>[\d\w]+)/insider$', TradersView.as_view(api=True)), url(r'^(?P<share_name>[\d\w]+)/insider/(?P<trader_id>[\d]+)$', TradersView.as_view(api=True)), url(r'^(?P<share_name>[\d\w]+)/delta$', DeltaView.as_view(api=True)), ])), url(r'^parse/$', ParserView.as_view(template_name='parse/index.html'), name='parse'), url(r'^(?P<share_name>[\d\w]+)/$', ShareView.as_view(template_name='web/shares.html')),
from django.urls import path from web.views import IndexView urlpatterns = [path('', IndexView.as_view())]
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 url, include from django.urls import path from web.views import (IndexView, UserProfileView, CustomDictionaryView, TwitterSearchView, RecentSearchTwitterView, TimelineSearchTwitterView) from web import views urlpatterns = [ path('admin/', admin.site.urls), path('', include('api.urls')), path('', include('accounts.urls')), url(r'^socialanalyzer/$', IndexView.as_view(), name='web'), url(r'^socialanalyzer/profile_get/$', UserProfileView.as_view(), name='profile_get'), url(r'^socialanalyzer/profile_update/$', UserProfileView.as_view(), name='profile_update'), url(r'^socialanalyzer/twitter_search/$', TwitterSearchView.as_view(), name='twitter_search'), url(r'^socialanalyzer/twitter_results/$', TwitterSearchView.as_view(), name='twitter_results'), url(r'^socialanalyzer/dictionary_get/$', CustomDictionaryView.as_view(), name='dictionary_get'),
from django.urls import path from web.views import IndexView, DetailsView urlpatterns = [ path(r'<path:path>', DetailsView.as_view(), name="details"), path('', IndexView.as_view()) ]