1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 """pharos_dashboard URL Configuration
13 The `urlpatterns` list routes URLs to views. For more information please see:
14 https://docs.djangoproject.com/en/1.10/topics/http/urls/
17 1. Add an import: from my_app import views
18 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
20 1. Add an import: from other_app.views import Home
21 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
22 Including another URLconf
23 1. Import the include() function: from django.conf.urls import url, include
24 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
26 from django.conf import settings
27 from django.conf.urls import url, include
28 from django.conf.urls.static import static
29 from django.contrib import admin
33 url(r'^', include('dashboard.urls', namespace='dashboard')),
34 url(r'^booking/', include('booking.urls', namespace='booking')),
35 url(r'^accounts/', include('account.urls', namespace='account')),
37 url(r'^admin/', admin.site.urls),
38 url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
40 url(r'^api/', include('api.urls'))
43 if settings.DEBUG is True:
44 urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)