From 3740cd5ddccd18feb707d840e99c30f7cad8f704 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Fri, 10 Feb 2017 16:17:16 -0500 Subject: [PATCH] Update docs to add SITE_ID, to address #481 --- docs/install.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/install.rst b/docs/install.rst index b8195027..205e6110 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -35,7 +35,7 @@ Adding To Your Django Project 'django.contrib.auth', 'django.contrib.contenttypes', '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.humanize', # Required for elapsed time formatting 'markdown_deux', # Required for Knowledgebase item formatting @@ -43,6 +43,12 @@ Adding To Your Django Project '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``:: url(r'helpdesk/', include('helpdesk.urls')),