add nick
[laas.git] / src / laas_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 """
13 laas_dashboard URL Configuration.
14
15 The `urlpatterns` list routes URLs to views. For more information please see:
16     https://docs.djangoproject.com/en/1.10/topics/http/urls/
17 Examples:
18 Function views
19     1. Add an import:  from my_app import views
20     2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
21 Class-based views
22     1. Add an import:  from other_app.views import Home
23     2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
24 Including another URLconf
25     1. Import the include() function: from django.conf.urls import url, include
26     2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
27 """
28 from django.conf import settings
29 from django.conf.urls import url, include
30 from django.conf.urls.static import static
31 from django.contrib import admin
32
33
34 urlpatterns = [
35
36     url(r'^workflow/', include('workflow.urls', namespace='workflow')),
37     url(r'^', include('dashboard.urls', namespace='dashboard')),
38     url(r'^booking/', include('booking.urls', namespace='booking')),
39     url(r'^accounts/', include('account.urls', namespace='account')),
40     url(r'^resource/', include('resource_inventory.urls', namespace='resource')),
41     url(r'^admin/', admin.site.urls),
42     url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
43     url(r'^api/', include('api.urls')),
44     url(r'^messages/', include('notifier.urls', namespace='notifier')),
45     url(r'^oidc/', include('mozilla_django_oidc.urls')),
46 ]
47
48 if settings.DEBUG is True:
49     urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)