"""SuperSearch 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.urls import url from django.contrib import admin from django.views.generic import TemplateView from search.views import SearchSuggest, SearchView, IndexView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', IndexView.as_view(), name="index"), url(r'^suggest/$', SearchSuggest.as_view(), name="suggest"), url(r'^search/$', SearchView.as_view(), name="search"), ]
"""elastic 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 search.views import IndexView, SearchView from elastic.views import Index urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^index/$', IndexView.as_view(), name='index'), url(r'^search/$', SearchView.as_view(), name='search'), url(r'^$', Index.as_view()) ]
"""NovelSearch 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, re_path from search.views import IndexView, SearchView urlpatterns = [ path('admin/', admin.site.urls), re_path(r'^$', IndexView.as_view(), name='index'), re_path(r'^search$', SearchView.as_view(), name='search') ]
https://docs.djangoproject.com/en/2.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.conf import settings from django.urls import path, re_path from django.views.static import serve from search.views import IndexView, SearchSuggest, SearchView, favicon_view from user.views import LoginView, LogoutView, RegisterView urlpatterns = [ path('favicon.ico', favicon_view), re_path('media/(?P<path>.*)', serve, {"document_root": settings.MEDIA_ROOT}), path('', IndexView.as_view(), name="index"), path('suggest/', SearchSuggest.as_view(), name="suggest"), path('search/', SearchView.as_view(), name="search"), path('login/', LoginView.as_view(), name="login"), path('logout/', LogoutView.as_view(), name="logout"), path("register/", RegisterView.as_view(), name="register"), ]
"""EsSearch URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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, re_path from django.views.generic import TemplateView from search.views import SearchSuggest, IndexView, SearchView, favicon_view urlpatterns = [ #path('favicon.ico', favicon_view), path('admin/', admin.site.urls), path('', IndexView.as_view(), name='index'), path('suggest/', SearchSuggest.as_view(), name="suggest"), path('search/', SearchView.as_view(), name="search"), ]
"""searchx URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/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,include,patterns from django.contrib import admin from search.views import IndexView # urlpatterns = [ # url(r'^admin/', admin.site.urls), # url(r'^search/', inc) # ] urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^search/', include('search.urls', namespace='search')), url(r'^shufa/', include('shufa.urls', namespace='shufa')), url(r'^$',IndexView.as_view()), )
"""mtianyanSearch 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 django.views.generic import TemplateView from search.views import SearchSuggest, SearchView, IndexView,favicon_view urlpatterns = [ path('admin/', admin.site.urls), path('', IndexView.as_view(),name = "index"), path('suggest/',SearchSuggest.as_view(),name = "suggest"), path('search/', SearchView.as_view(), name="search"), path('favicon.ico', favicon_view), ]
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.conf.urls import include, url from django.contrib import admin from django.contrib.auth import views as auth_views from .views import ContactView from search.views import IndexView import post.urls as post_urls import search.urls as search_urls urlpatterns = [ url(r'^$', IndexView.as_view(), name="home"), url(r'^login/$', auth_views.login, name="login"), url(r'^logout/$', auth_views.logout, name="logout"), url(r'^admin/', include(admin.site.urls)), url(r'^contact', ContactView.as_view() , name="contact"), url(r'^post/', include(post_urls, namespace="post")), url(r'^search/', include(search_urls, namespace="search")), ]
"""JobSearch URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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 django.conf.urls import url from django.views.generic import TemplateView from search.views import SearchSuggest, SearchView, IndexView urlpatterns = [ url('^admin/', admin.site.urls), url('^$', IndexView.as_view(), name='index'), url(r'^suggest/$', SearchSuggest.as_view(), name='suggest'), url(r'^search/$', SearchView.as_view(), name="search"), ]