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 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'),