RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning. url(r'^$', RedirectView.as_view(pattern_name="main")),
RemovedInDjango19Warning: Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning. url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True), {'mode':results_mode.SEARCH }), [YOCTO #9733] Signed-off-by: Aníbal Limón <anibal.li...@linux.intel.com> --- project/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/urls.py b/project/urls.py index 7b6f643..0e8f39c 100644 --- a/project/urls.py +++ b/project/urls.py @@ -37,7 +37,7 @@ urlpatterns = patterns('', url(r'^(?i)ClientPost/JSON/$', 'Post.views.addData', { 'return_json' : True }), url(r'^(?i)Errors/$', 'Post.views.default', name="main"), url(r'^(?i)Statistics/$', TemplateView.as_view(template_name="home.html"), name = "statistics"), - url(r'^$', RedirectView.as_view(pattern_name="main")), + url(r'^$', RedirectView.as_view(pattern_name="main", permanent=True)), # Url for backwards compatibility with old search links - url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True), {'mode':results_mode.SEARCH }), + url(r'^Errors/Search/Args/$', RedirectView.as_view(pattern_name="Post.views.search",query_string=True,permanent=True), {'mode':results_mode.SEARCH }), ) -- 2.1.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto