示例#1
0
文件: urls.py 项目: kennonlee/kcdc3
from django.conf.urls import patterns, include, url
from models import Event, Registration
from views import EventListView, EventDetailView, ResponseTemplateView, EventArchiveView, SessionView, RegistrationListView, SessionAdminListView, TeacherAdminListView, FilteredTeacherAdminListView

urlpatterns = patterns('kcdc3.apps.classes.views',

	url(r'^$', EventListView.as_view()),
	url(r'^staff/$', SessionAdminListView.as_view()),
	url(r'^staff/teachers/$', TeacherAdminListView.as_view()),
	url(r'^staff/teachers/session/(?P<slug>[A-Za-z0-9_-]+)/$', FilteredTeacherAdminListView.as_view()),
	url(r'^staff/registrations/session/(?P<slug>[A-Za-z0-9_-]+)/$', RegistrationListView.as_view()),
	url(r'^(?P<slug>[0-9_-]+)/$', EventArchiveView.as_view()),
	url(r'^(?P<slug>[0-9_-]+)/background/$', SessionView.as_view()),
	url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$', ResponseTemplateView.as_view()),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/$', EventDetailView.as_view(model=Event,)),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/register$', 'register'),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/cancel$', 'cancel'),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/facilitator$', 'facilitator'),

)
示例#2
0
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required

from surlex.dj import surl

from views import EventListView, EventDetailView, ReportListView, ReportDetailView

from views import event_register

urlpatterns = patterns('',
    url(r'^$', login_required(EventListView.as_view()), name='event_list'),
    surl(r'^event/<pk:s>/$', login_required(EventDetailView.as_view()), name='event_detail'),
    surl(r'^event/<pk:s>/register', login_required(event_register), name='event_register'),
    surl(r'^report/$', ReportListView.as_view(), name='report_list'),
    surl(r'^report/<pk:s>/$', ReportDetailView.as_view(), name='report_detail'),
)

示例#3
0
from django.conf import settings
from django.conf.urls.defaults import url, patterns
from views import EventDetailView, MoreUpcomingEventsView

urlpatterns = patterns(
    '',
    url(r'^(?P<pk>\d+)/$', EventDetailView.as_view(), name='event-detail'),
    url(r'^more_upcoming/$',
        MoreUpcomingEventsView.as_view(),
        name='more-upcoming-events'),
)
示例#4
0
            RoleCreateView,  \
            ParticipantCreateView, \
            MassCreateView, \
            JSONSegmentUpdateView
from newproject.Event_Planner.views import JSONSegmentDeleteView,\
    SongSegmentUpdateView, EventListView, TemplateCreateView, OrderUpdateView,\
    AjaxActivityCreateView, JSONRoleListView, JSONParticipantListView,\
    JSONActivityDeleteView
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns(
    'Event_Planner.views',
    url(r'^$', EventListView.as_view(), name='event_list_view'),
    url(r'^(?P<pk>\d+)/$', EventDetailView.as_view(),
        name='event_detail_view'),
    url(r'^create/$', EventCreateView.as_view(), name='event_create_view'),
    url(r'^create/template/$',
        TemplateCreateView.as_view(),
        name='template_event_create_view'),
    url(r'^create/mass/$', MassCreateView.as_view(), name='mass_create_view'),
    url(r'^(?P<pk>\d+)/update/$',
        EventUpdateView.as_view(model=Event),
        name='event_update_view'),
    url(r'^(?P<pk>\d+)/update/order/$',
        OrderUpdateView.as_view(model=Event),
        name='event_order_update_view'),
    url(r'^(?P<pk>\d+)/delete/$',
        EventDeleteView.as_view(),
        name='event_delete_view'),
示例#5
0
from views import EventCalendarView
from views import EventsResultsView
from views import ArchivalCalendarsView
from views import ArchivalInfoView
from views import EventDetailView
from views import EventInfoView
from views import RecordsView
from views import StatisticsView
from views import RanksView

urlpatterns = [
    #url(r'^(?P<acronym>[A-Z]{4,11}\d{4}[A-Z]{2,3})/', FieldEventDetailsView.as_view()),
    url(r'^kalendarz/$', EventCalendarView.as_view()),
    url(r'^kalendarz/archiwum/?$', ArchivalCalendarsView.as_view()),
    url(r'^kalendarz/(?P<year>\w+)/$', EventCalendarView.as_view()),
    url(r'^wyniki/archiwum/?$', ArchivalResultsView.as_view()),
    url(r'^wyniki/$', EventsResultsView.as_view()),
    url(r'^wyniki/(?P<year>\w+)/$', EventsResultsView.as_view()),
    url(r'^rankingi/$', RanksView.as_view()),
    url(r'^rankingi/(?P<year>\w+)/$', RanksView.as_view()),
    url(r'^informacje-o-zawodach/$', EventInfoView.as_view()),
    url(r'^informacje-o-zawodach/archiwum/$', ArchivalInfoView.as_view()),
    url(r'^informacje-o-zawodach/(?P<year>\w+)/$', EventInfoView.as_view()),
    url(r'^rekordy/?$', RecordsView.as_view()),
    url(r'^statystyki/?$', StatisticsView.as_view()),
    url(r'^non-stadia/?$', TemplateView.as_view(template_name='pzwla_events/non-stadia.html')),
    url(r'^chod-sportowy/?$', TemplateView.as_view(template_name='pzwla_events/chod-sportowy.html')),
    url(r'^kalkulator-wynikow/?$', TemplateView.as_view(template_name='pzwla_events/kalkulator.html')),
    url(r'^(?P<slug>[-\w]+)/$', EventDetailView.as_view(), name='event-detail'),
]
示例#6
0
from django.conf import settings
from django.conf.urls import url, patterns
from views import EventDetailView, MoreUpcomingEventsView

urlpatterns = patterns('',
    url(r'^(?P<pk>\d+)/$', EventDetailView.as_view(), name='event-detail'),
    url(r'^more_upcoming/$', MoreUpcomingEventsView.as_view(), name='more-upcoming-events'),
)
示例#7
0
                 CallDetailView, CompanyTypesListView, CompanyTypesDetailView, MaterialListView, MaterialDetailView

urlpatterns = patterns(
    '',
    url(r'^companies/$', CompanyListView.as_view(),
        name='companies-list-view'),
    url(r'^companies/(?P<company_id>\d+)/$',
        CompanyDetailView.as_view(),
        name='companies-detail-view'),
    url(r'^users/$', UserListView.as_view(), name='users-list-view'),
    url(r'^users/(?P<user_id>\d+)/$',
        UserDetailView.as_view(),
        name='users-detail-view'),
    url(r'^events/$', EventListView.as_view(), name='events-list-view'),
    url(r'^events/(?P<event_id>\d+)/$',
        EventDetailView.as_view(),
        name='events-detail-view'),
    url(r'^calls/', CallListView.as_view(), name='calls-list-view'),
    url(r'^calls/(?P<call_id>\d+)/$',
        CallDetailView.as_view(),
        name='calls-detail-view'),
    url(r'^company-type/$',
        CompanyTypesListView.as_view(),
        name='company-type-list-view'),
    url(r'^company-type/(?P<company_type_id>\d+)/$',
        CompanyTypesDetailView.as_view(),
        name='company-type-detail-view'),
    url(r'^materials/$',
        MaterialListView.as_view(),
        name='materials-list-view'),
    url(r'^materials/(?P<material_id>\d+)/$',
示例#8
0
    url(r'^staff/teachers/session/(?P<slug>[A-Za-z0-9_-]+)/$',
        FilteredTeacherAdminListView.as_view()),
    url(r'^staff/registrations/session/(?P<slug>[A-Za-z0-9_-]+)/$',
        RegistrationListView.as_view()),
    url(r'^staff/social/session/(?P<slug>[A-Za-z0-9_-]+)/$',
        SocialListView.as_view()),

    # data
    url(r'^data/attendance/session/(?P<slug>[A-Za-z0-9_-]+)/json/$',
        JSONVizSessionAttendanceDataListView.as_view()),
    url(r'^data/attendance/session/(?P<slug>[A-Za-z0-9_-]+)/csv/$',
        'csv_session_attendance_data'),
    url(r'^data/registration/session/(?P<slug>[A-Za-z0-9_-]+)/csv/$',
        'csv_session_registration_data'),
    url(r'^data/location/txt/$', 'txt_location_data'),
    url(r'^data/location/json/$', 'json_location_data'),
    url(r'^data/event_location/json/$', 'json_event_location_data'),
    url(r'^data/events_by_location/tsv/$', 'tsv_events_by_location_data'),
    url(r'^data/users/csv/$', 'csv_users_data'),
    url(r'^classes$', UserEventListView.as_view()),
    url(r'^(?P<slug>[0-9_-]+)/$', EventArchiveView.as_view()),
    url(r'^(?P<slug>[0-9_-]+)/background/$', SessionView.as_view()),
    url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$',
        ResponseTemplateView.as_view()),
    url(r'^(?P<slug>[A-Za-z0-9_-]+)/$',
        EventDetailView.as_view(model=Event, )),
    url(r'^(?P<slug>[A-Za-z0-9_-]+)/register$', 'register'),
    url(r'^(?P<slug>[A-Za-z0-9_-]+)/cancel$', 'cancel'),
    url(r'^(?P<slug>[A-Za-z0-9_-]+)/facilitator$', 'facilitator'),
)
示例#9
0
	# staff dashboard
	url(r'^staff/$', SessionAdminListView.as_view()),
	url(r'^staff/teachers/$', TeacherAdminListView.as_view()),
	url(r'^staff/teachers/session/(?P<slug>[A-Za-z0-9_-]+)/$', FilteredTeacherAdminListView.as_view()),
	url(r'^staff/registrations/session/(?P<slug>[A-Za-z0-9_-]+)/$', RegistrationListView.as_view()),

	# data
	url(r'^data/attendance/session/(?P<slug>[A-Za-z0-9_-]+)/json/$', JSONVizSessionAttendanceDataListView.as_view()),
	url(r'^data/attendance/session/(?P<slug>[A-Za-z0-9_-]+)/csv/$', 'csv_session_attendance_data'),
	url(r'^data/registration/session/(?P<slug>[A-Za-z0-9_-]+)/csv/$', 'csv_session_registration_data'),
	url(r'^data/location/txt/$', 'txt_location_data'),
	url(r'^data/location/json/$', 'json_location_data'),
	url(r'^data/event_location/json/$', 'json_event_location_data'),
	url(r'^data/events_by_location/tsv/$', 'tsv_events_by_location_data'),
	url(r'^data/users/csv/$', 'csv_users_data'),

	url(r'^classes$', UserEventListView.as_view()),

	url(r'^(?P<slug>[0-9_-]+)/$', EventArchiveView.as_view()),
	url(r'^(?P<slug>[0-9_-]+)/background/$', SessionView.as_view()),

	url(r'^response/(?P<slug>[A-Za-z0-9_-]+)$', ResponseTemplateView.as_view()),

	url(r'^(?P<slug>[A-Za-z0-9_-]+)/$', EventDetailView.as_view(model=Event,)),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/register$', 'register'),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/cancel$', 'cancel'),
	url(r'^(?P<slug>[A-Za-z0-9_-]+)/facilitator$', 'facilitator'),

)