mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-26 09:53:12 +01:00
Update install.rst
Change example urls.py URL patterns from raw tuples to url(...) calls, for Django 1.8 (and possibly 1.5+) compatibility.
This commit is contained in:
parent
1ff45f4e1b
commit
caa1ec242a
@ -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``::
|
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::
|
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.
|
This line will have to come *after* any other lines in your urls.py such as those used by the Django admin.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user