Lab as a Service 2.0
[laas.git] / src / pharos_dashboard / urls.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 # Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11
12 """pharos_dashboard URL Configuration
13
14 The `urlpatterns` list routes URLs to views. For more information please see:
15     https://docs.djangoproject.com/en/1.10/topics/http/urls/
16 Examples:
17 Function views
18     1. Add an import:  from my_app import views
19     2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
20 Class-based views
21     1. Add an import:  from other_app.views import Home
22     2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
23 Including another URLconf
24     1. Import the include() function: from django.conf.urls import url, include
25     2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
26 """
27 from django.conf import settings
28 from django.conf.urls import url, include
29 from django.conf.urls.static import static
30 from django.contrib import admin
31
32
33 urlpatterns = [
34
35     url(r'^wf/', include('workflow.urls', namespace='workflow')),
36     url(r'^', include('dashboard.urls', namespace='dashboard')),
37     url(r'^booking/', include('booking.urls', namespace='booking')),
38     url(r'^accounts/', include('account.urls', namespace='account')),
39     url(r'^resource/', include('resource_inventory.urls', namespace='resource')),
40     url(r'^admin/', admin.site.urls),
41     url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
42     url(r'^api/', include('api.urls')),
43     url(r'^messages/', include('notifier.urls', namespace='notifier'))
44 ]
45
46 if settings.DEBUG is True:
47     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)