Пример #1
0
    EventCreate,
    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)),
Пример #2
0
EventCreate, EventList, MenuList, MenuJson, MenuData, ContactView


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'),
Пример #3
0
	#Edit Director
	url(r'^director/(?P<pk>\d+)/edit/$',
    	DirectorEdit.as_view(),
    	name='director_edit'),

	#Director Delete
	url(r'^director/(?P<pk>\d+)/delete/$',
		DirectorDelete.as_view(),
		name='director_delete'),

	######################

	#Company list
	url(r'^company/$',
		CompanyList.as_view(
			context_object_name='latest_company_list',
			template_name='myapp/company_list.html'),
		name='company_list'),

	#Company detail
	url(r'^company/(?P<pk>\d+)/$',
		CompanyDetail.as_view(
			model=Company,
			template_name='myapp/company_detail.html'),
		name='company_detail'),

	#Create Company
	url(r'^company/create/$',
        CompanyCreate.as_view(),
        name='company_create'),
Пример #4
0
#python imports

#django imports
from django.conf.urls import url

#local imports
from views import CompanyList

#inter app imports

#third party imports

urlpatterns = [
    url(r'^companies/$', CompanyList.as_view()),
]
Пример #5
0
                GenresList,GenreDetail, GenreCreate, GenreEdit, GenreDelete, \
                GamesList, GameDetail, GameCreate, GameEdit, GameDelete,review, \
                APIGameList, APIGameReviewDetail, APIGameDetail, \
                APICompanyList, APICompanyDetail, APIPlatformList, \
                APIPlatformDetail, APIGenreList, APIGameReviewList, APIGenreDetail
from forms import CompanyForm, PlatformForm, GenreForm, GameForm

urlpatterns = [
    # Home page
    url(r'^$',
        TemplateView.as_view(template_name="gamesApp/main.html"),
        name="Home"),

    # Company list
    url(r'^companies\.(?P<extension>(json|xml|html))?$',
        CompanyList.as_view(),
        name='companies_list'),

    # Company details
    url(r'^companies/(?P<pk>\d+)\.(?P<extension>(json|xml|html))?$',
        CompanyDetail.as_view(),
        name='company_detail'),

    # Create Company
    url(r'^companies/create/$',
        CompanyCreate.as_view(),
        name='company_create'),

    # Edit Company
    url(r'^companies/(?P<pk>\d+)/edit/$',
        CompanyEdit.as_view(
Пример #6
0
#python imports

#django imports
from django.conf.urls import url

#local imports
from views import CompanyList

#inter app imports

#third party imports

urlpatterns = [
	url(r'^companies/$', CompanyList.as_view()),]