duck-booking-tool/duckbook/urls.py

31 lines
645 B
Python
Raw Normal View History

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}
),
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')),
]