2015-05-27 22:32:41 +00:00
|
|
|
from django.conf import settings
|
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 21:10:26 +00:00
|
|
|
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}
|
|
|
|
),
|
2015-05-27 21:10:26 +00:00
|
|
|
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')),
|
2015-05-27 22:32:41 +00:00
|
|
|
url(r'^api/v1/', 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
|
|
|
)
|