urls.py 661 Bytes
Newer Older
1
2
3
from django.conf.urls import patterns, include, url
from website.views import *
from rest_framework.routers import DefaultRouter
Nicholas Anderson's avatar
Nicholas Anderson committed
4
5
from django.conf.urls.static import static
from whats_open.settings import local as settings_local
6
7
8
9
10
11

router = DefaultRouter()
router.register(r'categories', CategoryViewSet)
router.register(r'facilities', FacilityViewSet)
router.register(r'schedules', ScheduleViewSet)
router.register(r'opentimes', OpenTimeViewSet)
Daniel Bond's avatar
Daniel Bond committed
12
13

urlpatterns = patterns('website.views',
14
    url(r'^api/', include(router.urls)),
15
    url(r'^$', 'facility_grid', name='facility_grid'),
Nicholas Anderson's avatar
Nicholas Anderson committed
16
) + static(settings_local.STATIC_URL, document_root=settings_local.STATIC_ROOT)