Esempio n. 1
0
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django.views.generic.base import TemplateView
from meetup.views import EventPage, TalkPage
from views import IndexPage, EventsList, AboutPage

urlpatterns = patterns('',
    url('^$', IndexPage.as_view(), name='index'),
    url('^about/$', AboutPage.as_view(), name='about'),
    url('^meetups/$', EventsList.as_view(), name='events'),
    url('^meetups/(?P<pk>\d+)/$', EventPage.as_view(), name='event'),
    url('^meetups/(?P<event_id>\d+)/(?P<talk_slug>[\w-]+)/$', TalkPage.as_view(), name='talk'),
)
Esempio n. 2
0
from django.conf.urls import url

from views import (
    IndexPage, EpiCollectProject, EpiCollectUploadView, EpiCollectDownloadView
)

urlpatterns = [
    url(
        r'^admin/epicollect/$',
        IndexPage.as_view(),
        name='index'),
    url(
        r'^api/epicollect/projects/(?P<project_id>[0-9]+).xml$',
        EpiCollectProject.as_view(),
        name='project_form'),
    url(
        r'^api/epicollect/projects/(?P<project_id>[0-9]+)/download/$',
        EpiCollectDownloadView.as_view(),
        name='download'),
    url(
        r'^api/epicollect/projects/(?P<project_id>[0-9]+)/upload/$',
        EpiCollectUploadView.as_view(),
        name='upload')
]
Esempio n. 3
0
from django.conf.urls import url
from views import IndexPage

urlpatterns = [
    url(r'^', IndexPage.as_view(), name="index-page"),
]