from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from django.views.generic import TemplateView from tastypie.api import Api from inspections.api import FacilityResource, InspectionResource, ViolationResource from inspections.views import region, region_json, load as iv_load from home.views import HomeIndexView admin.autodiscover() v1_api = Api(api_name="v1") v1_api.register(FacilityResource()) v1_api.register(InspectionResource()) v1_api.register(ViolationResource()) urlpatterns = patterns( "", url(r"^admin/doc/", include("django.contrib.admindocs.urls")), url(r"^admin/", include(admin.site.urls)), url(r"^api/docs", TemplateView.as_view(template_name="api_docs.html"), name="api_docs"), url(r"^api/", include(v1_api.urls)), url(r"^$", HomeIndexView.as_view(), name="home"), url(r"^inspections/load/?$", iv_load, name="inspections_load"), url(r"^(?P<region>\w+).json$", region_json, name="region_json"), url(r"^region$", region, name="region"), url(r"^location/(\d+)/?", HomeIndexView.as_view(), name="home"), )
from django.views.generic import TemplateView from tastypie.api import Api from inspections.api import (FacilityResource, InspectionResource, ViolationResource) from inspections.views import region, region_json, load as iv_load from home.views import HomeIndexView admin.autodiscover() v1_api = Api(api_name='v1') v1_api.register(FacilityResource()) v1_api.register(InspectionResource()) v1_api.register(ViolationResource()) urlpatterns = patterns( '', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^api/docs', TemplateView.as_view(template_name="api_docs.html"), name="api_docs"), url(r'^api/', include(v1_api.urls)), url(r'^$', HomeIndexView.as_view(), name="home"), url(r'^inspections/load/?$', iv_load, name='inspections_load'), url(r'^(?P<region>\w+).json$', region_json, name="region_json"), url(r'^region$', region, name='region'), url(r'^location/(\d+)/?', HomeIndexView.as_view(), name="home"), )
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from django.views.generic import TemplateView from tastypie.api import Api from inspections.api import (FacilityResource, InspectionResource, ViolationResource) from home.views import HomeIndexView admin.autodiscover() v1_api = Api(api_name='v1') v1_api.register(FacilityResource()) v1_api.register(InspectionResource()) v1_api.register(ViolationResource()) urlpatterns = patterns('', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^api/docs', TemplateView.as_view(template_name="api_docs.html"), name="api_docs"), url(r'^api/', include(v1_api.urls)), url(r'^$', HomeIndexView.as_view(), name="home"), url(r'', include('social_auth.urls')), )