Beispiel #1
0
from django.conf.urls import patterns, include, url

from views import (EventList, EventDetail, EventUpdate, EventPersonUpdate,
                   EventPersonDelete, EventPersonCreate, EventResync,
                   PersonAutocomplete, PersonUpdate, PersonCreate, PersonList,
                   PersonDelete, EventMaterials, EventMaterialsSuccess,
                   EventAdditionalEmail)

urlpatterns = patterns(
    'events.views',

    url(r'^$', EventList.as_view(), name='events'),
    url(r'^(?P<pk>\d+)/$', EventDetail.as_view(), name='event_detail'),
    url(r'^(?P<pk>\d+)/update/$', EventUpdate.as_view(), name='event_update'),
    url(r'^(?P<pk>\d+)/add-event-person/$', EventPersonCreate.as_view(), name='event_person_create'),
    url(r'^(?P<pk>\d+)/resync/$', EventResync.as_view(), name='event_resync'),
    url(r'^(?P<pk>\d+)/materials/$', EventMaterials.as_view(), name='event_materials'),
    url(r'^(?P<pk>\d+)/additional-email/$', EventAdditionalEmail.as_view(),
        name='event_additional_email'),
    url(r'materials/success/$', EventMaterialsSuccess.as_view(), name='event_materials_success'),

    url(r'^eventperson/(?P<pk>\d+)/update/$', EventPersonUpdate.as_view(), name='event_person_update'),
    url(r'^eventperson/(?P<pk>\d+)/delete/$', EventPersonDelete.as_view(), name='event_person_delete'),

    url(r'^person/$', PersonList.as_view(), name='person_list'),
    url(r'^person/autocomplete/$', PersonAutocomplete.as_view(), name='person_autocomplete'),
    url(r'^person/(?P<pk>\d+)/update/$', PersonUpdate.as_view(), name='person_update'),
    url(r'^person/(?P<pk>\d+)/delete/$', PersonDelete.as_view(), name='person_delete'),
    url(r'^person/create/$', PersonCreate.as_view(), name='person_create'),

)
Beispiel #2
0
    EventList,
)
from api import LocationAPI, BookingsAPI, CustomersAPI, EventAPI

from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns(
    "",
    # Examples:
    # url(r'^$', 'reserved.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r"^$", IndexView.as_view()),
    url(r"^companies/$", CompanyList.as_view(), name="reserved_companies"),
    url(r"^events/$", EventList.as_view(), name="event_list"),
    url(r"^events/new/$", EventCreate.as_view(), name="event_create"),
    url(r"^venues/$", VenueList.as_view(), name="reserved_venues"),
    url(r"^venues/new/$", VenueCreate.as_view(), name="venues_create"),
    url(r"^venues/calendar/$", VenueCalendarView.as_view(), name="venues_calendar"),
    url(
        r"^venues/calendar/(?P<date_str>[0-9]{4}-[0-9]{2}-[0-9]{2})[/](?P<name_range>[\w]{0,}[^/])/$",
        VenueCalendarView.as_view(),
        name="reserved_venues__date_calendar",
    ),
    url(r"^bookings/$", BookingList.as_view(), name="reserved_bookings"),
    url(r"^bookings/new/$", BookingCreate.as_view(), name="bookings_create"),
    url(r"^bookings/detail/(?P<slug>[-_\w]+)/$", BookingDetail.as_view(), name="bookings_detail"),
    (r"^accounts/", include("userena.urls")),
    url(r"^admin/", include(admin.site.urls)),
)
Beispiel #3
0
                               form_class=StoryForm),
                           name='story_edit'),

                       # Create a story /applicationMarvel/stories/create/
                       url(r'^stories/create/$',
                           StoryCreate.as_view(),
                           name='story_create'),

                       # Delete story details, ex.: applicationMarvel/story/1/delete/
                       url(r'^story/(?P<pk>\d+)/delete/$',
                           StoryDelete.as_view(),
                           name='story_delete'),

                       # List events /applicationMarvel/events.json
                       url(r'^events(\.(?P<extension>(json|xml)))?$',
                           EventList.as_view(),
                           name='events_list'),

                       # Event details, ex.: /applicationMarvel/event/1.json
                       url(r'^event/(?P<pk>\d+)(\.(?P<extension>(json|xml)))?$',
                           EventDetail.as_view(),
                           name='event_detail'),

                       # Edit event details, ex.: applicationMarvel/event/1/edit/
                       url(r'^event/(?P<pk>\d+)/edit/$',
                           LoguinRequiredCheckIsOwnerUpdateView.as_view(
                               model=Event,
                               template_name='applicationMarvel/formularis/form.html',
                               form_class=EventForm),
                           name='event_edit'),
Beispiel #4
0
from api import LocationAPI, BookingsAPI, CustomersAPI, EventAPI

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'bookit.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^$', IndexView.as_view()),
    url(r'^companies/$'
        , CompanyList.as_view() , name='reserved_companies'),

    url(r'^events/$'
        , EventList.as_view() , name='event_list'),
    url(r'^events/new/$'
        , EventCreate.as_view() , name='event_create'),

    url(r'^venues/$'
        , VenueList.as_view() , name='reserved_venues'),
    url(r'^venues/new/$'
        , VenueCreate.as_view() , name='venues_create'),
    url(r'^venues/calendar/$'
        , VenueCalendarView.as_view() , name='venues_calendar'),
    url(r'^venues/calendar/(?P<date_str>[0-9]{4}-[0-9]{2}-[0-9]{2})[/](?P<name_range>[\w]{0,}[^/])/$'
        , VenueCalendarView.as_view() , name='reserved_venues__date_calendar'),

    url(r'^bookings/$'
        , BookingList.as_view() , name='reserved_bookings'),
    url(r'^bookings/new/$'
from django.conf.urls import url
from django.conf import settings

from views import EventList, EventDetail, AddEvent


# URL endpoints for the feed, individual events by ID, adding events and the media root where the photos are stored
urlpatterns = [
    url('^events/$', EventList.as_view(), name='event-list'),
    url('^events/(?P<pk>[0-9]+)/$', EventDetail.as_view(), name='event-detail'),
    url('^add-event$', AddEvent.as_view(), name='add-event'),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
]