Merge pull request #485 from gwasser/481_site_id_docs

Update docs to add SITE_ID, to address #481
This commit is contained in:
Jonathan Barratt 2017-02-12 17:36:49 +07:00 committed by GitHub
commit 77978ec644

View File

@ -35,7 +35,7 @@ Adding To Your Django Project
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', # Required for determing domain url for use in emails 'django.contrib.sites', # Required for determining domain url for use in emails
'django.contrib.admin', # Required for helpdesk admin/maintenance 'django.contrib.admin', # Required for helpdesk admin/maintenance
'django.contrib.humanize', # Required for elapsed time formatting 'django.contrib.humanize', # Required for elapsed time formatting
'markdown_deux', # Required for Knowledgebase item formatting 'markdown_deux', # Required for Knowledgebase item formatting
@ -43,6 +43,12 @@ Adding To Your Django Project
'helpdesk', # This is us! 'helpdesk', # This is us!
) )
Your ``settings.py`` file should also define a ``SITE_ID`` that allows multiple projects to share
a single database, and is required by ``django.contrib.sites`` in Django 1.9+.
If you aren't running multiple sites, you can simply add a default ``SITE_ID`` to ``settings.py``::
SITE_ID = 1
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``::
url(r'helpdesk/', include('helpdesk.urls')), url(r'helpdesk/', include('helpdesk.urls')),