2015-10-20 14:26:25 +00:00
|
|
|
# -*- coding: utf-8
|
|
|
|
"""
|
|
|
|
Main URL definitions file
|
|
|
|
"""
|
|
|
|
|
2015-05-27 22:32:41 +00:00
|
|
|
from django.conf import settings
|
2015-10-20 14:26:25 +00:00
|
|
|
from django.conf.urls import include, url
|
2014-12-23 09:39:56 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
admin.autodiscover()
|
2014-12-23 09:34:36 +00:00
|
|
|
|
2015-10-20 14:26:25 +00:00
|
|
|
urlpatterns = [
|
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(
|
2015-10-20 14:26:25 +00:00
|
|
|
r'^admin/',
|
|
|
|
include(admin.site.urls)),
|
|
|
|
url(
|
|
|
|
r'^accounts/',
|
|
|
|
include('accounts.urls', namespace='accounts')),
|
|
|
|
url(
|
|
|
|
r'^api/v1/',
|
|
|
|
include('api.urls', namespace='api')),
|
|
|
|
url(
|
|
|
|
'',
|
|
|
|
include('booking.urls', namespace='booking')),
|
|
|
|
]
|