1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
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 ##############################################################################
13 laas_dashboard URL Configuration.
15 The `urlpatterns` list routes URLs to views. For more information please see:
16 https://docs.djangoproject.com/en/1.10/topics/http/urls/
19 1. Add an import: from my_app import views
20 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
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'))
28 from django.conf.urls import url
29 from django.urls import path
31 from account.views import (
36 account_resource_view,
48 url(r'^settings/', AccountSettingsView.as_view(), name='settings'),
49 url(r'^login/$', OIDCLoginView.as_view(), name='login'),
50 url(r'^logout/$', LogoutView.as_view(), name='logout'),
51 url(r'^users/$', UserListView.as_view(), name='users'),
52 url(r'^my/resources/$', account_resource_view, name='my-resources'),
53 path('my/resources/delete/<int:resource_id>', template_delete_view),
54 url(r'^my/bookings/$', account_booking_view, name='my-bookings'),
55 path('my/bookings/cancel/<int:booking_id>', booking_cancel_view),
56 url(r'^my/images/$', account_images_view, name='my-images'),
57 path('my/images/delete/<int:image_id>', image_delete_view),
58 url(r'^my/$', account_detail_view, name='my-account'),