# Path: templation/urls.py
# def templation_static(**kwargs):
#     """
#     Helper function to return a URL pattern for serving files in debug mode.
#     Mostly cloned from django.conf.urls.static function.
# 
#     from templation.urls import templation_static
# 
#     urlpatterns = patterns('',
#         # ... the rest of your URLconf goes here ...
#     ) + templation_static(**kwargs)
# 
#     """
#     kwargs.update({
#         'document_root': DAV_ROOT
#     })
# 
#     return patterns(
#         '',
#         url(r'{0}/(?P<resource_id>\d+)/(?P<path>.*)$'.format(
#             DAV_STATIC_URL.strip('/')), static_view, kwargs=kwargs),
#     )


from django.conf.urls import patterns, url, include
from django.contrib import admin
from templation.urls import templation_static
from .views import *

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^index/(?P<pk>\d+)/$', index, name='index'),
    url(r'^cbv_index/(?P<pk>\d+)/$', IndexView.as_view(), name='cbv_index'),
    url(r'^extended/(?P<pk>\d+)/$', ExtendedView.as_view(), name='extended'),
    url(r'^fail/(?P<pk>\d+)/$', FailView.as_view(), name='fail'),
    url(r'^public_connection/$', PublicView.as_view(), name='public'),

# Path: templation/urls.py
# def templation_static(**kwargs):
#     """
#     Helper function to return a URL pattern for serving files in debug mode.
#     Mostly cloned from django.conf.urls.static function.
# 
#     from templation.urls import templation_static
# 
#     urlpatterns = patterns('',
#         # ... the rest of your URLconf goes here ...
#     ) + templation_static(**kwargs)
# 
#     """
#     kwargs.update({
#         'document_root': DAV_ROOT
#     })
# 
#     return patterns(
#         '',
#         url(r'{0}/(?P<resource_id>\d+)/(?P<path>.*)$'.format(
#             DAV_STATIC_URL.strip('/')), static_view, kwargs=kwargs),
#     )


# Path: tests/urls.py
from django.conf.urls import patterns, url, include
from django.contrib import admin
from templation.urls import templation_static
from .views import *


admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^index/(?P<pk>\d+)/$', index, name='index'),
    url(r'^cbv_index/(?P<pk>\d+)/$', IndexView.as_view(), name='cbv_index'),
    url(r'^extended/(?P<pk>\d+)/$', ExtendedView.as_view(), name='extended'),
    url(r'^fail/(?P<pk>\d+)/$', FailView.as_view(), name='fail'),
    url(r'^public_connection/$', PublicView.as_view(), name='public'),

) + templation_static()