示例#1
0
from django.conf.urls import url, include
import happydogs
from views import ContactView

urlpatterns = [url(r'^', ContactView.as_view())]
示例#2
0
    # pre-csm page routes
    # TODO: move into flatpages
    url(r'^progetto/en/$',
        TemplateView.as_view(template_name='flat/project.html')),
    url(r'^project/$',
        TemplateView.as_view(template_name='flat/project.html'),
        name='oc-progetto-en'),
    url(
        r'^a-scuola-di-opencoesione/',
        TemplateView.as_view(
            template_name='flat/a_scuola_di_opencoesione.html')),
    url(r'^cerca-un-progetto/',
        TemplateView.as_view(template_name='flat/cerca_progetto.html')),
    url(r'^contatti/$',
        ContactView.as_view(template_name='flat/contatti.html'),
        name='oc-contatti'),
    url(r'^cerca-un-soggetto/',
        TemplateView.as_view(template_name='flat/cerca_soggetto.html')),
    url(r'^scheda-progetto/',
        TemplateView.as_view(template_name='flat/scheda_progetto.html')),
    url(r'^info-disponibili/',
        TemplateView.as_view(template_name='flat/info_disponibili.html')),
    url(r'^api-faq/',
        TemplateView.as_view(template_name='flat/api.html'),
        name='api-faq'),
    url(r'^dati-istat-di-contesto/$',
        DatiISTATView.as_view(template_name='open_coesione/dati_istat.html'),
        name='dati-istat'),
    url(r'^speciale-scuole/$',
        TemplateView.as_view(template_name='open_coesione/focus_scuole.html'),
示例#3
0
文件: urls.py 项目: KostyantynT/test
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import login

from views import ContactView
from views import ContactUpdate
from views import RequestsView

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', ContactView.as_view(), name='contact_view'),
 
    url(r'^edit/(?P<pk>\d+)/$', login_required(ContactUpdate.as_view()), name='contact_edit'),
    url(r'^middleware/$', RequestsView.as_view(), name='requests_view'),
    url(r'^login$', login, name='login'),
    url(r'^login(?P<next>.*)$', login, {'next': '/'}, name='login_next'),
    # url(r'^contact/', include('contact.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'^admin/', include(admin.site.urls)),
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
示例#4
0
# encoding=utf-8

from django.conf.urls import url
from views import ContactView, ContactFormView

urlpatterns = [
    url(r"^form.html$", ContactFormView.as_view()),
    url(r"^$", ContactView.as_view()),
]
示例#5
0
文件: urls.py 项目: lgarest/zoe
from django.conf.urls import url
from views import IndexView, ZOEhubView, ZOEaiView, UsesView, BuyView, ContactView

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='home'),
    url(r'^zoehub$', ZOEhubView.as_view(), name='zoehub'),
    url(r'^zoeai$', ZOEaiView.as_view(), name='zoeai'),
    url(r'^uses$', UsesView.as_view(), name='uses'),
    url(r'^buy$', BuyView.as_view(), name='buy'),
    url(r'^contact$', ContactView.as_view(), name='contact')
]
示例#6
0
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
from views import (IndexView, BiographyView, ContactView, PortfolioView,
    PresentView)

urlpatterns = patterns('',
    url(r'^$', IndexView.as_view(), name='portafolio-index'),
    url(r'^portafolio/$', PortfolioView.as_view(), name='portafolio-albumes'),
    url(r'^biografia/$', BiographyView.as_view(), name='portafolio-biografia'),
    url(r'^actualidad/$', PresentView.as_view(), name='portafolio-actualidad'),
    url(r'^contacto/$', ContactView.as_view(), name='portafolio-contacto'),
    url(r'^portafolio/(?P<codigo>\w+)/$', PortfolioView.as_view(), name='portafolio-albumes'),
)
示例#7
0
from django.conf.urls.defaults import *
from views import ContactView

urlpatterns = patterns(
    '', url(r'^contact/$', ContactView.as_view(), name='contact'))
                                  searchqueryset=sqs,
                                  template='search-results.html')
"""
Django urls handler
"""
urlpatterns = patterns(
    '',
    url(r'^$', TemplateView.as_view(template_name="landing.html")),
    url(r'^(?i)autocomplete/?$', autocomplete, name="autocomplete"),
    url(r'^(?i)search$', search_inst, name="haystack_search"),
    url(r'^(?i)list$', get_list_view),
    url(r'^(?i)concepts/((?P<anything>.*))',
        RedirectView.as_view(url="/graphs/concepts/%(anything)s",
                             query_string=True),
        name='concepts'),
    url(r'^(?i)graphs/', include('apps.graph.urls', namespace="graphs")),
    url(r'^user/', include('apps.user_management.urls', namespace='user')),
    url(r'^roadmaps/', include('apps.roadmaps.urls', namespace='roadmaps')),
    url(r'^captcha/', include('captcha.urls')),
    url(r'^about/?$', TemplateView.as_view(template_name='about.html')),
    url(r'^feedback/?$', ContactView.as_view()),
    url(r'^thanks/?$',
        TemplateView.as_view(template_name='feedback_thanks.html')),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^browser-tests',
        include('apps.browser_tests.urls', namespace="btests")),
)

urlpatterns += staticfiles_urlpatterns()
示例#9
0
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import login

from views import ContactView
from views import ContactUpdate
from views import RequestsView

admin.autodiscover()

urlpatterns = patterns(
    '',
    # Examples:
    url(r'^$', ContactView.as_view(), name='contact_view'),
    url(r'^edit/(?P<pk>\d+)/$',
        login_required(ContactUpdate.as_view()),
        name='contact_edit'),
    url(r'^middleware/$', RequestsView.as_view(), name='requests_view'),
    url(r'^login$', login, name='login'),
    url(r'^login(?P<next>.*)$', login, {'next': '/'}, name='login_next'),
    # url(r'^contact/', include('contact.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'^admin/', include(admin.site.urls)),
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': settings.STATIC_ROOT}),
示例#10
0
文件: urls.py 项目: dairdr/lexicon
# -*- encoding: utf-8 -*-
"""Defines all urls conf."""
from django.conf.urls import patterns, url
from views import IndexView, ProjectView, ContactView, ThanksView, ResultView, ResultByIndexView, WordView

urlpatterns = patterns('',
	url(r'^$', IndexView.as_view(), name='dictionary-index'), # index web
	url(r'^contact/$', ContactView.as_view(), name='dictionary-contact'), # contact page
	url(r'^project/$', ProjectView.as_view(), name='dictionary-project'), # project page
	url(r'^search/$', ResultView.as_view(), name='dictionary-search'), # search a word
	url(r'^index/(?P<letter>\w{1})/$', ResultByIndexView.as_view(), name='dictionary-search-by-index'), # search by index
	url(r'^word/(?P<word>\d+)/$', WordView.as_view(), name='dictionary-word'), # view a info word
	url(r'^thanks/$', ThanksView.as_view(), name='dictionary-thanks'), # response to sent message
)
示例#11
0
from django.conf.urls import patterns, url, include
from views import ProductView, ContactView

#URLS DE LA APLICACION INICIO
from django.views.generic import TemplateView

urlpatterns = patterns('',
	url(r'^$', TemplateView.as_view( template_name='inicio/index.html' ) , name="home"),
	#url(r'^$',, {'template_name': 'inicio/index.html'} , name="login"),
	url(r'^about/$',TemplateView.as_view( template_name='inicio/about.html' ) , name="about"),
	url(r'^product/$',ProductView.as_view() , name="product"),
	url(r'^contact/$',ContactView.as_view() , name="contact"),
	url(r'^$','django.contrib.auth.views.login', {'template_name': 'inicio/login.html'} , name="login"),
	url(r'^logout/$','django.contrib.auth.views.logout_then_login' , name="logout"),
)
示例#12
0
    path('me/signup/', UserSignupView.as_view(), name='user_signup'),
    path('me/signin/', UserSigninView.as_view(), name='user_signin'),
    path('me/signout/', UserSignoutView.as_view(), name='user_signout'),
    path('me/username/', UsernameChangeView.as_view(), name='user_change_username'),
    path('me/avatar/', include('avatar.urls')),
    path('me/', include('allauth.urls')),

    # Staff admin
    path('admin/', admin.site.urls),

    # Home page
    path('', HomeView.as_view(), name='home'),

    # About pages etc
    path('about/', AboutView.as_view(), name='about'),
    path('about/contact/', ContactView.as_view(), name='contact'),
    path('about/help/', HelpView.as_view(), name='help'),
    path('about/privacy-policy/', PrivacyView.as_view(), name='privacy-policy'),
    path('about/terms-and-conditions/', TermsView.as_view(), name='terms-and-conditions'),

    # Accounts App
    path('accounts/', include(accounts_patterns)),

    # API
    path('api/', include(api_patterns)),

    # Testing errors
    path('test/403', Test403View.as_view()),
    path('test/404', Test404View.as_view()),
    path('test/500', Test500View.as_view()),
示例#13
0
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 views import ContactView

class UCFormatter(object):
    def format(self, name):
        return name.upper()

class LCFormatter(object):
    def format(self, name):
        return name.lower()

# Pass the desired logic of the view here
urlpatterns = [
    # url(r'^contacts/', ContactView.as_view(formatter=UCFormatter())),
    url(r'^contacts/', ContactView.as_view(formatter=LCFormatter())),
]
示例#14
0
    ##########################################################################
    # url(r'^integrations/(?P<integration_id>\w+)/auth_validation/$',        #
    #     AuthView.as_view(),                                                #
    #     name='auth_validation_endpoint'),                                  #
    # url(r'^integrations/(?P<integration_id>\w+)/contact_sync/$',           #
    #     ContactView.as_view(),                                             #
    #     name='contact_sync_endpoint'),                                     #
    # url(r'^integrations/(?P<integration_id>\w+)/agent_sync/$',             #
    #     AgentView.as_view(),                                               #
    #     name='agent_sync_endpoint'),                                       #
    # url(r'^integrations/(?P<integration_id>\w+)/interaction_retrieval/$',  #
    #     InteractionView.as_view(),                                         #
    #     name='interaction_retrieval_endpoint'),                            #
    ##########################################################################
    # The following are very specific non general urls to solve the Talkdesk #
    # tech challenge                                                         #
    ##########################################################################
    url(r'^integrations/nishadhelpscout/auth_validation/$',
        AuthView.as_view(),
        name='auth_validation_endpoint'),
    url(r'^integrations/nishadhelpscout/contact_sync/$',
        ContactView.as_view(),
        name='contact_sync_endpoint'),
    url(r'^integrations/nishadhelpscout/agent_sync/$',
        AgentView.as_view(),
        name='agent_sync_endpoint'),
    url(r'^integrations/nishadhelpscout/interaction_retrieval/$',
        InteractionView.as_view(),
        name='interaction_endpoint'),
)
示例#15
0
urlpatterns = [
    url(r'^home/$',HomeView.as_view() , name="main"),
    url(r'^adminhome/$',AdminHome.as_view() , name="admin_home"),
    url(r'^login/$',views.login , name="customer_login" ),
    url(r'^logout/$',auth_views.logout  ,{"template_name":"index.html"}, name="customer_logout"),
    url(r'^registeration/$', RegisterationView.as_view() , name="customer_regiseraion"),
    url(r'^change/password',ChangePasswordView.as_view() , name="password_change"),
    url(r'^myorder/$',MyOrderView.as_view(), name="my_order"),
    url(r'^item/([a-zA-Z\s]+)/$',ItemView.as_view(), name="my_items"),
    url(r'^delete/([a-zA-Z\s]+)/$',DeleteView.as_view(), name="del_items"),

    url(r'^views1',MyProductView1.as_view(), name="my_product1"),
    url(r'^views2',MyProductView2.as_view(), name="my_product2"),
    url(r'^views3',MyProductView3.as_view(), name="my_product3"),
    url(r'^views4',MyProductView4.as_view(), name="my_product4"),

    url(r'^wallet',MyWalletVew.as_view(), name="mt_wallet"),
    url(r'^buy',BuyView.as_view(), name="buy_view"),
    url(r'^cart/([a-zA-Z\s]+)/$',AddToCartView.as_view(), name="add_to_cart"),
    url(r'^message',MessageView.as_view(), name="message_view"),
    url(r'^contacts/',ContactView.as_view(), name="contact_view"),



    # url(r'^buy/([a-zA-Z\s]+)/$',BuyView.as_view(), name="buy_view")



] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

urlpatterns += staticfiles_urlpatterns()
示例#16
0
from django.conf.urls import url
from views import LoginView, OTPView, ContactView, FeedView, UserView, ProfileRequestView, \
BlockMuteView, NotificationView, InviteView, ShareContactView, InterestView, SocialProfileView

urlpatterns = [
    url(r'login/', LoginView.as_view()),
    url(r'otp/', OTPView.as_view()),
    url(r'social_profile/', SocialProfileView.as_view()),
    url(r'interest/', InterestView.as_view()),
    url(r'user/', UserView.as_view()),
    url(r'profile_request/', ProfileRequestView.as_view()),

    url(r'contact/', ContactView.as_view()),
    url(r'block_mute/', BlockMuteView.as_view()),
    url(r'invite/', InviteView.as_view()),
    url(r'share/', ShareContactView.as_view()),

    url(r'feed/', FeedView.as_view()),
    url(r'notification/', NotificationView.as_view())
]
示例#17
0
        , EventAPI.as_view() , name='event_api'),

    url(r'^api/locations/$'
        , LocationAPI.as_view() , name='locations_api'),
    url(r'^api/locations/(?P<location_id>[0-9]+)/?$'
        , LocationAPI.as_view() , name='locations_id_api'),
)

urlpatterns += patterns('',

    url(r'^menu/$'
        , MenuList.as_view() , name='menu'),
    url(r'^menu/json/$'
        , MenuJson.as_view() , name='menu_json'),
    url(r'^menu/data.js$'
        , MenuData.as_view() , name='menu_data'),
    url(r'^menu/json/(?P<pk>[0-9]+)/$'
        , MenuJson.as_view() , name='menu_json'),
    url(r'^menu/(?P<menu_id>[0-9]+)/?$'
        , MenuList.as_view() , name='menu_id'),

)


urlpatterns += patterns('',

    url(r'^contact/$'
        , ContactView.as_view() , name='contact'),

)
示例#18
0
文件: urls.py 项目: spaceone/denigma
from django.conf.urls import patterns, url

from views import IndexView, DetailView, AboutView, ContactView


urlpatterns = patterns(
    "immuno.views",
    url(r"^$", IndexView.as_view(), name="immuno"),
    url(r"^about/$", AboutView.as_view(), {"slug": "about-immunology-lab"}, name="immuno-about"),
    url(r"^contact/$", ContactView.as_view(), {"slug": "contact-immunology-lab"}, name="immuno-contact"),
    url(r"^(?P<slug>.+)", DetailView.as_view(), name="immuno-entry"),
)
"""
Django urls handler
"""
urlpatterns = patterns(
    "",
    url(r"^$", TemplateView.as_view(template_name="landing.html")),
    url(r"^(?i)autocomplete/?$", autocomplete, name="autocomplete"),
    url(r"^(?i)search$", search_inst, name="haystack_search"),
    url(r"^(?i)list$", get_list_view),
    url(r"^(?i)browse$", get_browsing_view),
    url(
        r"^(?i)concepts/((?P<anything>.*))",
        RedirectView.as_view(url="/graphs/concepts/%(anything)s", query_string=True),
        name="concepts",
    ),
    url(r"^(?i)graphs/", include("apps.graph.urls", namespace="graphs")),
    url(r"^user/", include("apps.user_management.urls", namespace="user")),
    url(r"^roadmaps/", include("apps.roadmaps.urls", namespace="roadmaps")),
    url(r"^course_guides/", roadmap_views.course_guide_list),
    url(r"^captcha/", include("captcha.urls")),
    url(r"^about/?$", TemplateView.as_view(template_name="about.html")),
    url(r"^terms/?$", TemplateView.as_view(template_name="terms_of_service.html"), name="terms"),
    url(r"^feedback/?$", ContactView.as_view()),
    url(r"^thanks/?$", TemplateView.as_view(template_name="feedback_thanks.html")),
    (r"^admin/doc/", include("django.contrib.admindocs.urls")),
    url(r"^admin/", include(admin.site.urls)),
    url(r"^browser-tests", include("apps.browser_tests.urls", namespace="btests")),
)

urlpatterns += staticfiles_urlpatterns()
示例#20
0
admin.autodiscover()

sqs = SearchQuerySet().filter(is_listed_in_main_str="True")
sqs.order_by('score')
search_inst = search_view_factory(view_class=MultiSearchView, searchqueryset=sqs, template='search-results.html')

"""
Django urls handler
"""
urlpatterns = patterns('',
                       url(r'^$', TemplateView.as_view(template_name="landing.html")),
                       url(r'^(?i)autocomplete/?$', autocomplete, name="autocomplete"),
                       url(r'^(?i)search$', search_inst, name="haystack_search"),
                       url(r'^(?i)list$', get_list_view),
                       url(r'^(?i)browse$', get_browsing_view),
                       url(r'^(?i)concepts/((?P<anything>.*))',
                           RedirectView.as_view(url="/graphs/concepts/%(anything)s", query_string=True), name='concepts'),
                       url(r'^(?i)graphs/', include('apps.graph.urls', namespace="graphs") ),
                       url(r'^user/', include('apps.user_management.urls', namespace='user') ),
                       url(r'^roadmaps/', include('apps.roadmaps.urls', namespace='roadmaps')),
                       url(r'^captcha/', include('captcha.urls')),
                       url(r'^about/?$', TemplateView.as_view(template_name='about.html')),
                       url(r'^feedback/?$', ContactView.as_view()),
                       url(r'^thanks/?$', TemplateView.as_view(template_name='feedback_thanks.html')),
                       (r'^admin/doc/', include('django.contrib.admindocs.urls')),
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^browser-tests', include('apps.browser_tests.urls', namespace="btests")),
)

urlpatterns += staticfiles_urlpatterns()
示例#21
0
文件: urls.py 项目: al-layth/denigma
from django.conf.urls import patterns, url

from views import IndexView, DetailView, AboutView, ContactView

urlpatterns = patterns(
    'immuno.views',
    url(r'^$', IndexView.as_view(), name='immuno'),
    url(r'^about/$',
        AboutView.as_view(), {'slug': 'about-immunology-lab'},
        name='immuno-about'),
    url(r'^contact/$',
        ContactView.as_view(), {'slug': 'contact-immunology-lab'},
        name='immuno-contact'),
    url(r'^(?P<slug>.+)', DetailView.as_view(), name='immuno-entry'),
)