diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-12-02 15:58:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-10 11:16:13 +0000 |
commit | 81ebce07788cd4c5f53cb6ad7b51ee3d6e52c881 (patch) | |
tree | 29e15f3b83c691893c44aad8e83aa05254dbc644 /bitbake/lib/toaster/bldviewer/urls.py | |
parent | 5ab8545c4f43af1b30a230c290fbb00ebbe14ed4 (diff) | |
download | poky-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/bldviewer/urls.py')
-rw-r--r-- | bitbake/lib/toaster/bldviewer/urls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldviewer/urls.py b/bitbake/lib/toaster/bldviewer/urls.py index becc679203..b84c95f08b 100644 --- a/bitbake/lib/toaster/bldviewer/urls.py +++ b/bitbake/lib/toaster/bldviewer/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 | ||
19 | from django.conf.urls import patterns, include, url | 19 | from django.conf.urls import patterns, include, url |
20 | from django.views.generic.simple import redirect_to | 20 | from django.views.generic import RedirectView |
21 | 21 | ||
22 | urlpatterns = patterns('bldviewer.views', | 22 | urlpatterns = patterns('bldviewer.views', |
23 | url(r'^builds/$', 'build', name='all-builds'), | 23 | url(r'^builds/$', 'build', name='all-builds'), |
@@ -28,5 +28,5 @@ urlpatterns = patterns('bldviewer.views', | |||
28 | url(r'^build/(?P<build_id>\d+)/configuration/$', 'configuration', name='configuration'), | 28 | url(r'^build/(?P<build_id>\d+)/configuration/$', 'configuration', name='configuration'), |
29 | url(r'^layers/$', 'layer', name='all-layers'), | 29 | url(r'^layers/$', 'layer', name='all-layers'), |
30 | url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'), | 30 | url(r'^layerversions/(?P<layerversion_id>\d+)/recipes/.*$', 'layer_versions_recipes', name='layer_versions_recipes'), |
31 | url(r'^$', redirect_to, {'url': 'builds/'}), | 31 | url(r'^$', RedirectView.as_view( url= 'builds/')), |
32 | ) | 32 | ) |