From 8a541ccaad4a6ca6fddd11c3eb3141dc04133ac2 Mon Sep 17 00:00:00 2001 From: "U-besna\\chrham" Date: Thu, 28 Mar 2013 23:43:34 +0100 Subject: [PATCH 1/2] Updated and replaced deprecated modules/functions --- urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urls.py b/urls.py index 5c751aa..f9e4a3c 100644 --- a/urls.py +++ b/urls.py @@ -11,11 +11,11 @@ """ from django.conf.urls.defaults import patterns, include, url -from django.views.generic.simple import redirect_to +from django.views.generic import RedirectView from django.conf import settings urlpatterns = patterns('', - ('^$', redirect_to, {'url': '/items'}), + ('^$', RedirectView.as_view(url='/items')), ('^items$', 'items.views.items'), ('^edit/1$', 'items.views.edit'), ('^ajax/items$', 'items.views.items_ajax'), From ce484fb7e88ef60cc015ce6b8bac9fda1cf7c3b4 Mon Sep 17 00:00:00 2001 From: "U-besna\\chrham" Date: Thu, 28 Mar 2013 23:46:48 +0100 Subject: [PATCH 2/2] Remark + Requirements --- README.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 5f1b964..d533fa4 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,11 @@ ======== -Hijax demo +Hijax demo, Django 1.5 ======== +Initial Remark +============== +This just updates the example found at https://github.com/mpuig/hijax to be useable with Django 1.5. + Documentation ============= @@ -23,4 +27,4 @@ browse: http://localhost:8000 Requirements ============ -Django 1.2 \ No newline at end of file +Django 1.5 \ No newline at end of file