"""landing URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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.urls import url from django.contrib import admin from pages.views import PageDetailView , HomeView,about from newsletter.api.views import JoinCreateAPIView urlpatterns = [ url(r'^$', HomeView.as_view(), name='home'), url(r'^about/$', about, name="about"), url(r'^admin/', admin.site.urls), url(r'^api/email/join/$', JoinCreateAPIView.as_view(), name='email-join'), url(r'^(?P<slug>[\w-]+)/$', PageDetailView.as_view(), name='page-detail'), ]
# -*- coding: utf-8 -*- from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from django.views import defaults as default_views from django.views.i18n import javascript_catalog from config.router import urlpatterns as api_urlpatterns from core.views import PartialsTemplateView from pages.views import HomeView urlpatterns = [ url(r"^$", HomeView.as_view(), name="home"), url(r"^", include("pages.urls", namespace="pages")), url(r"^users/", include("users.urls", namespace="users")), url(r"^journeys/", include("journeys.urls", namespace="journeys")), url(r"^notifications/", include("notifications.urls", namespace="notifications")), ] # Partials URLs urlpatterns += [ url(r'^partials/(?P<name>.+)\.html', PartialsTemplateView.as_view(), name="partials-template"), ] # OpenID URLs urlpatterns += [ url(r"^accounts/signup/$", default_views.page_not_found, kwargs={'exception': Exception('Page not Found')}), url(r"^accounts/login/$", default_views.page_not_found, kwargs={'exception': Exception('Page not Found')}), url(r"^accounts/logout/$", default_views.page_not_found, kwargs={'exception': Exception('Page not Found')}),
from django.conf.urls import url from django.views.generic.base import TemplateView from pages.views import HomeView urlpatterns = [ url(r'^$', HomeView.as_view(), name='home'), ]
from django.urls import path from pages.views import AboutView, HomeView urlpatterns = [ path('', HomeView.as_view()), path('about', AboutView.as_view()), ]
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 pages.views import MainView, LoginView, SignUpView, HomeView from resume.views import ResumeListView, ResumeCreateView from vacancy.views import VacancyListView, VacancyCreateView from django.views.generic import RedirectView urlpatterns = [ path("home", HomeView.as_view(), name="home"), path('home/', RedirectView.as_view(url="/home")), path('vacancy/new', VacancyCreateView.as_view(), name="create_vacancy"), path('resume/new', ResumeCreateView.as_view(), name="create_resume"), path('login/', RedirectView.as_view(url='/login')), path('signup/', RedirectView.as_view(url='/signup')), path('signup', SignUpView.as_view(), name="signup_site"), path('login', LoginView.as_view(), name="login_site"), path('vacancies', VacancyListView.as_view(), name="vacancy_list"), path('resumes/', ResumeListView.as_view(), name="resume_list"), path('', MainView.as_view(), name="main"), path('admin/', admin.site.urls), ]
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 import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import path, include from django.views.decorators.clickjacking import xframe_options_exempt from pages.views import HomeView urlpatterns = [ # X-Frame-Options exempt to test responsiveness via ami.responsivedesign.is path('', xframe_options_exempt(HomeView.as_view()), name='home'), path('admin/', admin.site.urls), path('users/', include('users.urls')), path('users/', include('django.contrib.auth.urls')), path('products/', include('products.urls', namespace='products')), path('cart/', include('cart.urls', namespace='cart')), path('checkout/', include('checkout.urls', namespace='checkout')), path('pages/', include('pages.urls', namespace='pages')), path('news/', include('news.urls', namespace='news')), ] # Add media and static local serving during debug mode only if settings.DEBUG: urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL,
from django.urls import path from pages.views import IndexView, HomeView, AboutView urlpatterns = [ path('', IndexView.as_view()), path('about', AboutView.as_view()), path('home', HomeView.as_view()), ]
"""ideas URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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.urls import include, path, re_path from django.contrib import admin from pages.views import HomeView, PageDetailView from newsletter.api.views import JoinCreateAPIView urlpatterns = [ re_path(r'^$', HomeView.as_view(), name='home'), re_path(r'^admin/', admin.site.urls), re_path(r'api/email/join/$', JoinCreateAPIView.as_view(), name='email-join'), re_path(r'^(?P<slug>[\w-]+)/$', PageDetailView.as_view(), name='page-detail'), ]
""" __author__ = "Eraldo Energy" from django.conf.urls import patterns, url from django.shortcuts import redirect from pages.views import HomeView, TestView, ChatView, PersonalDevelopmentView, WebDesignView, TechnologyView urlpatterns = patterns('', # ex: ../ url(r'^$', lambda x: redirect('home/'), name='redirect'), # ex: ../home/ url(r'^home/$', HomeView.as_view(), name='home'), # TOPICS # ex: ../personal-development/ url(r'^personal-development/$', PersonalDevelopmentView.as_view(), name='personal-development'), # ex: ../web-design/ url(r'^web-design/$', WebDesignView.as_view(), name='web-design'), # ex: ../technology/ url(r'^technology/$', TechnologyView.as_view(), name='technology'),
HomeView, CheckoutView, ItemDetailView, OrderSummaryView, support_view, search_view, summary_remove, summary_add, summary_remove_all, support_requests, ) urlpatterns = [ path('admin/', admin.site.urls, name='admin'), path('', home_view, name='home'), path('shop/', HomeView.as_view(),name='shop'), path('checkout/', CheckoutView.as_view(), name='checkout'), path('order-summary/', OrderSummaryView.as_view(), name='order-summary'), path('support_requests/', support_requests.as_view(), name='support_requests'), path('product/<slug>/', ItemDetailView.as_view(), name='product'), path('accounts/', include('allauth.urls')), path('support/', support_view.as_view(), name='support'), path('search/', search_view, name='search'), path('summary_remove/<slug>/', summary_remove, name='summary_remove'), path('summary_add/<slug>/', summary_add, name='summary_add'), path('summary_remove_all/<slug>/', summary_remove_all, name='summary_remove_all'), ] if settings.DEBUG: import debug_toolbar urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.conf import settings from django.conf.urls import patterns, url from django.conf.urls.static import static from pages.views import (HomeView, AboutView, WorkView, ConsultancyView, WorkshopsView, WorkshopView, ContactView) urlpatterns = patterns('', url(r'^$', HomeView.as_view(), name='home'), url(r'^about$', AboutView.as_view(), name='about'), url(r'^work$', WorkView.as_view(), name='work'), url(r'^consultancy$', ConsultancyView.as_view(), name='consultancy'), url(r'^workshops$', WorkshopsView.as_view(), name='workshops'), url(r'^workshops/(?P<wsid>[a-zA-Z0-9-]+)$', WorkshopView.as_view(), name='workshops'), url(r'^contact$', ContactView.as_view(), name='contact'), ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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 pages import views from django.conf.urls import url from django.contrib import admin from pages.views import HomeView, get_data, ChartData, get_name, ChartData1, HomeView2, HomeView3, HomeView4, HomeView5, HomeView6, ChartData2, ChartData3, ChartData4, ChartData5 urlpatterns = [ path('admin/', admin.site.urls), path('', views.home_view.as_view()), path('narad/', views.narad_view.as_view()), url(r'^text_f/x/$', HomeView.as_view(), name='home'), url(r'^text_f/t/$', HomeView2.as_view(), name='home'), url(r'^text_f/a/$', HomeView3.as_view(), name='home'), url(r'^text_f/b/$', HomeView4.as_view(), name='home'), url(r'^text_f/c/$', HomeView5.as_view(), name='home'), url(r'^text_f/d/$', HomeView6.as_view(), name='home'), url(r'^api/data/$', get_data, name='api-data'), url(r'^api/chart/data/$', ChartData.as_view()), url(r'^api/chart/datat/$', ChartData1.as_view()), url(r'^api/chart/dataa/$', ChartData2.as_view()), url(r'^api/chart/datab/$', ChartData3.as_view()), url(r'^api/chart/datac/$', ChartData4.as_view()), url(r'^api/chart/datad/$', ChartData5.as_view()), url(r'^admin/', admin.site.urls), url(r'^text_f/$', get_name, name='text_f'), ]
from django.urls import path from pages.views import HomeView urlpatterns = [path('', HomeView.as_view(), name='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 pages.views import home_view, contact_view, about_view from pages.views import (ContactView, HomeView, AboutView) from products.views import product_list_view, product_detail_view, product_create_view, product_delete_view urlpatterns = [ # for products urls path('products/', include('products.urls')), path('', HomeView.as_view(), name='home'), path('about/', AboutView.as_view(), name='about'), path('contact/', ContactView.as_view(), name='contact'), # Functions base urls # path('', home_view, name='home'), # path('about/', about_view, name='about'), # path('contact/', contact_view, name='contact'), # path('product/create/', product_create_view, name='product_create'), # path('products/', product_list_view, name='products'), # path('product/<int:product_id>/', product_detail_view, name='product_update'), # path('product/<int:product_id>/delete/', product_delete_view, name='product_delete'), path('admin/', admin.site.urls, name='admin'), ]
"""lab3 URL Configuration""" from django.contrib import admin from django.urls import path from pages.views import HomeView, contact_view, GetFlags, PostStatus urlpatterns = [ path('', HomeView.as_view()), path('home/', HomeView.as_view()), path('contact', contact_view), path('api/flags/data/', GetFlags.as_view()), path('api/updateflags/', PostStatus.as_view()) ]
rules_light.autodiscover() autocomplete_light.autodiscover() admin.autodiscover() rules_light.registry['api.models.UserProfile.read'] = True feeds = { 'rss': RssSiteNewsFeed, 'feeds': RssPostsFeed, 'atom': AtomSiteNewsFeed, } urlpatterns = patterns('', url(r'^home/$', HomeView.as_view()), url(r'^grappelli/', include('grappelli.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^django-rq/', include('django_rq.urls')), url(r'^rest/', include('rest_framework.urls', namespace='rest_framework')), url(r'^complete/google-oauth2/', RedirectView.as_view(url='/dashboard/')), # url(r'^complete/(?P<backend>[^/]+)/$', complete,name='socialauth_complete'), url(r'^accounts_api/', include('registration_api.urls')), url(r'^accounts/login/',RedirectView.as_view(url='/dashboard/')), url(r'^$',HomeView.as_view()), url(r'^rest/$', RedirectView.as_view(url='/rest/login')), url(r'^buttons$', TemplateView.as_view(template_name='buttons.html'), name="buttons"), url(r'^api-auth/', include('rest_framework.urls',namespace='rest_framework')), url(r'^chaining/', include('smart_selects.urls')), url(r'^admin/property/neighborhood/add/$',include('smart_selects.urls')), url(r'^blog/', BlogView.as_view()),
"""ideas URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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.urls import url from django.contrib import admin from pages.views import HomeView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', HomeView.as_view(), name="index"), ]