Fixed all Flake8 errors
[pharos-tools.git] / dashboard / src / account / urls.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, 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.urls import url
28
29 from account.views import (
30     AccountSettingsView,
31     JiraAuthenticatedView,
32     JiraLoginView,
33     JiraLogoutView,
34     UserListView,
35     account_resource_view,
36     account_booking_view,
37     account_images_view,
38     account_configuration_view,
39     account_detail_view
40 )
41
42 app_name = "account"
43 urlpatterns = [
44     url(r'^settings/', AccountSettingsView.as_view(), name='settings'),
45     url(r'^authenticated/$', JiraAuthenticatedView.as_view(), name='authenticated'),
46     url(r'^login/$', JiraLoginView.as_view(), name='login'),
47     url(r'^logout/$', JiraLogoutView.as_view(), name='logout'),
48     url(r'^users/$', UserListView.as_view(), name='users'),
49     url(r'^my/resources', account_resource_view, name="my-resources"),
50     url(r'^my/bookings', account_booking_view, name="my-bookings"),
51     url(r'^my/images', account_images_view, name="my-images"),
52     url(r'^my/configurations', account_configuration_view, name="my-configurations"),
53     url(r'^my/$', account_detail_view, name="my-account"),
54 ]