Merge branch 'bug/13443_vm_template_ballooning' into release/0.10
[ganeti_webmgr.git] / urls.py
blobd9195186657dd8eebe58ed0e8ea3435f212f28a6
1 # Copyright (C) 2010 Oregon State University et al.
2 # Copyright (C) 2010 Greek Research and Technology Network
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 # USA.
20 from django.conf import settings
21 from django.conf.urls.defaults import *
23 # Uncomment the next two lines to enable the admin:
24 #from django.contrib import admin
25 #admin.autodiscover()
27 urlpatterns = patterns(
28 '',
29 (r'^', include('ganeti_web.urls')),
30 (r'^', include('object_permissions.urls')),
31 (r'^', include('object_log.urls')),
32 (r'^', include('muddle_users.urls')),
33 (r'^', include('muddle.urls')),
35 # user management
36 # account/activate/<key>/ - Activate a user
37 # account/activate/complete/ - Ater-activation page
38 # account/register/ - User registration form
39 # account/register/complete/ - After-registration page
40 # account/register/closed/ - No registration allowed page
41 # ---
42 # account/login - login page
43 # account/logout - logout page
44 # account/password/reset/ - send password reset email
45 # account/password/change/ - change current user password
47 # Authentication
48 url(r'^accounts/login/?', 'django.contrib.auth.views.login',
49 name="login",),
50 url(r'^accounts/logout/?', 'django.contrib.auth.views.logout',
51 {'next_page': '/'}, name="logout"),
52 (r'^accounts/', include('registration.urls')),
54 # Explicit 500 test route
55 (r'^500/$', 'django.views.generic.simple.direct_to_template',
56 {'template': "500.html"})
58 # Language settings
59 urlpatterns += patterns('',
60 (r'^i18n/', include('django.conf.urls.i18n')),
62 handler500 = 'ganeti_web.views.view_500'
65 #The following is used to serve up local static files like images
66 urlpatterns += patterns(
67 '',
68 (r'^favicon.ico', 'django.views.static.serve',
69 {'document_root': settings.STATIC_ROOT,
70 'path': 'favicon.ico'}),
72 # noVNC files
73 (r'^novnc/(?P<path>.*)', 'django.views.static.serve',
74 {'document_root': '%s/noVNC/include' % settings.DOC_ROOT}),