summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/urls.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-12-02 15:58:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-10 11:16:13 +0000
commit81ebce07788cd4c5f53cb6ad7b51ee3d6e52c881 (patch)
tree29e15f3b83c691893c44aad8e83aa05254dbc644 /bitbake/lib/toaster/toastermain/urls.py
parent5ab8545c4f43af1b30a230c290fbb00ebbe14ed4 (diff)
downloadpoky-81ebce07788cd4c5f53cb6ad7b51ee3d6e52c881.tar.gz
bitbake: toaster: update to Django 1.5
In order to remain up to date with the relevant technologies, Toaster is updated with this patch to Django 1.5. This also makes headways to allow usage of emerging Django-related technologies. Changes include the startup script Django version check, usage of TemplateView instead of deprecated simple function to do redirects, and update to the new form of the _url_ template tag. Support for Django 1.4.5 is now deprecated. [YOCTO #5558] (Bitbake rev: 2d37a1731a2b681bc976f3f391d65abb7745b6f9) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain/urls.py')
-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