summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastermain')
-rw-r--r--bitbake/lib/toaster/toastermain/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/urls.py b/bitbake/lib/toaster/toastermain/urls.py
index d0606bce9e..a696a0b216 100644
--- a/bitbake/lib/toaster/toastermain/urls.py
+++ b/bitbake/lib/toaster/toastermain/urls.py
@@ -17,7 +17,7 @@
17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 18
19from django.conf.urls import patterns, include, url 19from django.conf.urls import patterns, include, url
20from django.views.generic.simple import redirect_to 20from django.views.generic import RedirectView
21from django.views.decorators.cache import never_cache 21from django.views.decorators.cache import never_cache
22 22
23 23
@@ -29,7 +29,7 @@ urlpatterns = patterns('',
29 url(r'^simple/', include('bldviewer.urls')), 29 url(r'^simple/', include('bldviewer.urls')),
30 url(r'^api/1.0/', include('bldviewer.api')), 30 url(r'^api/1.0/', include('bldviewer.api')),
31 url(r'^gui/', include('toastergui.urls')), 31 url(r'^gui/', include('toastergui.urls')),
32 url(r'^$', never_cache(redirect_to), {'url': '/simple/'}), 32 url(r'^$', never_cache(RedirectView.as_view(url='/simple/'))),
33 # Examples: 33 # Examples:
34 # url(r'^toaster/', include('toaster.foo.urls')), 34 # url(r'^toaster/', include('toaster.foo.urls')),
35 35