duck-booking-tool/duckbook/urls.py

27 lines
778 B
Python
Raw Normal View History

2014-12-23 09:34:36 +00:00
from django.conf.urls import patterns, include, url
2014-12-23 09:39:56 +00:00
from django.contrib import admin
2015-05-27 20:19:18 +00:00
from django.conf import settings
from django.views.decorators.cache import cache_page
from django_js_reverse.views import urls_js
2014-12-23 09:39:56 +00:00
admin.autodiscover()
2014-12-23 09:34:36 +00:00
urlpatterns = patterns(
'',
2015-05-27 20:19:18 +00:00
url(
r'^static/(?P<path>.*)$',
'django.views.static.serve',
{'document_root': settings.STATIC_ROOT}
),
url(
r'^reverse.js$',
cache_page(3600)(urls_js),
name = 'js_reverse'
),
2014-12-23 09:39:56 +00:00
url(r'^admin/', include(admin.site.urls)),
2015-01-12 15:51:54 +00:00
url(r'^accounts/', include('accounts.urls', namespace = 'accounts')),
2014-12-23 08:29:58 +00:00
url(r'^api/', include('api.urls', namespace = 'api')),
2015-01-12 15:51:54 +00:00
url('', include('booking.urls', namespace = 'booking')),
2014-12-23 09:34:36 +00:00
)