From caa1ec242a7d871cff772a417268f98f5635e653 Mon Sep 17 00:00:00 2001 From: Jonathan Barratt Date: Wed, 3 Jun 2015 13:04:46 +0700 Subject: [PATCH] Update install.rst Change example urls.py URL patterns from raw tuples to url(...) calls, for Django 1.8 (and possibly 1.5+) compatibility. --- docs/install.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install.rst b/docs/install.rst index f386ea38..bb7d4334 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -46,11 +46,11 @@ Adding To Your Django Project 2. Make sure django-helpdesk is accessible via ``urls.py``. Add the following line to ``urls.py``:: - (r'helpdesk/', include('helpdesk.urls')), + url(r'helpdesk/', include('helpdesk.urls')), Note that you can change 'helpdesk/' to anything you like, such as 'support/' or 'help/'. If you want django-helpdesk to be available at the root of your site (for example at http://support.mysite.tld/) then the line will be as follows:: - (r'', include('helpdesk.urls')), + url(r'', include('helpdesk.urls')), This line will have to come *after* any other lines in your urls.py such as those used by the Django admin.