Exemple #1
0
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"),
)
Exemple #2
0
from django.conf.urls import include, url
from views import IndexView, FetchView, ResultView, DetailView

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^search/$', IndexView.as_view(), name='search_item'),
    url(r'^fetch/(?P<query>.+)/$', FetchView.as_view(), name='fetch_item'),
    url(r'^detail/(?P<pk>.+)/$', DetailView.as_view(), name='app_detail'),
    #url(r'^results/$', ResultView.as_view(), name='results'),
]
Exemple #3
0
# -*- coding:utf-8 -*-
# __author__ = 'lgh'
# __date__ = '2017/6/27 0027'

from django.conf.urls import url
from views import HomeView, DetailView, SearchView, CommentView

urlpatterns = [
    #首页
    url(r'^$', HomeView.as_view(), name="home"),
    #详情页
    url(r'^(?P<article_id>\d+)/$', DetailView.as_view(), name='detail'),
    #提交评论
    url(r'^comment', CommentView.as_view(), name='comment'),
    #搜索
    url(r'^search', SearchView.as_view(), name='search')
]
Exemple #4
0
from django.conf.urls import patterns, url
from views import IndexView, DetailView

urlpatterns = patterns(
    '',
    url(r"^$", IndexView.as_view(), name="engagements_form"),
    url(r"^detail/$", DetailView.as_view(), name="detail_view"),
)
Exemple #5
0
# _*_ encoding:utf-8 _*_

from django.conf.urls import url
from views import IndexView, DetailView, ListView

urlpatterns = [
    url(r'^index$', IndexView.as_view(), name='index'),  # 首页
    url(r'^goods/(?P<goods_id>\d+)$', DetailView.as_view(),
        name='detail'),  # 详情页
    url(r'^list/(?P<type_id>\d+)/(?P<page>\d*)$',
        ListView.as_view(),
        name='list'),  # 列表页
]
Exemple #6
0
from django.conf.urls import patterns, url, include

from views import DetailView, CreateEntryView

urlpatterns = patterns('',
    url(r'^$',
        CreateEntryView.as_view(),
        name='index'),

    url(r'^(?P<slug>[-\w]+)/(?P<id>\d+)/$',
        DetailView.as_view(),
        name="detail"),

)
Exemple #7
0
#!/usr/bin/env python
# encoding:utf-8
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from views import HomeView, IndexView, DetailView, AccountRedirectView, \
    WeixinFeeaView, WeixinInvitationView, WeixinFeeView, WeixinIndexView


urlpatterns = patterns('',
    #url(r'^detail/(?P<id>\w+)', P2PDetailView.as_view(), name='p2p detail'),
    url(r'^$', IndexView.as_view(), name='home'),
    url(r'^home/$', HomeView.as_view(), name='homde'),
    url(r'^detail/(?P<id>\w+)', DetailView.as_view(), name='mobile p2p detail'),
    url(r'^mobile_index/$', TemplateView.as_view(template_name="mobile_index.jade")),
    url(r'^mobile_assets/$', TemplateView.as_view(template_name="mobile_assets.jade")),
    url(r'^mobile_more/$', TemplateView.as_view(template_name="mobile_more.jade")),
    url(r'^mobile_detail/$', TemplateView.as_view(template_name="mobile_detail.jade")),
    url(r'^weixin_index/$', WeixinIndexView.as_view()),
    url(r'^weixin_login/$', TemplateView.as_view(template_name="weixin_index.jade")),
    url(r'^weixin_inputt/$', TemplateView.as_view(template_name="weixin_inputt.jade")),
    url(r'^weixin_about/$', TemplateView.as_view(template_name="weixin_about.jade")),
    url(r'^weixin_xieyi/$', TemplateView.as_view(template_name="weixin_xieyi.jade")),
    url(r'^weixin_fee/$', WeixinFeeView.as_view()),
    url(r'^weixin_app/$', TemplateView.as_view(template_name="weixin_app.jade")),
    url(r'^weixin_feea/$', WeixinFeeaView.as_view()),
    url(r'^weixin_registered/$', TemplateView.as_view(template_name="weixin_registered.jade")),
    url(r'^weixin_invitation/$', WeixinInvitationView.as_view()),
    url(r'^weixin_retrieve/$', TemplateView.as_view(template_name="weixin_retrieve.jade")),
    url(r'^account/redirect/$', AccountRedirectView.as_view()),
)
from django.conf.urls import patterns, url
from views import IndexView, DetailView

urlpatterns = patterns('',
    url(r"^$", IndexView.as_view(), name="engagements_form"),
    url(r"^detail/$", DetailView.as_view(), name="detail_view"),
)
Exemple #9
0
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'),
)
Exemple #10
0
from django.conf.urls import patterns, include, url
from views import IndexView, DetailView

urlpatterns = patterns('',
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'^(?P<pk>\d+)/$', DetailView.as_view(), name='detail'),
)