mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-12 18:00:45 +01:00
Updating documentation for Django 1.10 support and settings
This commit is contained in:
parent
8e626af41f
commit
c1330bc0c7
@ -26,7 +26,7 @@ Dependencies (pre-flight checklist)
|
||||
-----------------------------------
|
||||
|
||||
1. Python 2.7 or 3.4+ (3.4+ support is new, please let us know how it goes)
|
||||
2. Django (1.7 or newer, preferably 1.9 - Django 1.7 is not supported if you are using Python 3.5)
|
||||
2. Django (1.7, 1.8, 1.9 and 1.10, preferably 1.9 - Django 1.7 is not supported if you are using Python 3.5)
|
||||
3. An existing WORKING Django project with database etc. If you
|
||||
cannot log into the Admin, you won't get this product working.
|
||||
4. `pip install django-bootstrap-form` and add `bootstrapform` to `settings.INSTALLED_APPS`
|
||||
|
@ -1,7 +1,7 @@
|
||||
Settings
|
||||
========
|
||||
|
||||
First, django-helpdesk needs ``django.core.context_processors.request`` activated, so in your ``settings.py`` add::
|
||||
First, django-helpdesk needs ``django.core.context_processors.request`` activated, so you must add it to the ``settings.py``. For Django 1.7, add::
|
||||
|
||||
from django.conf import global_settings
|
||||
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
@ -9,6 +9,25 @@ First, django-helpdesk needs ``django.core.context_processors.request`` activat
|
||||
('django.core.context_processors.request',)
|
||||
)
|
||||
|
||||
For Django 1.8 and onwards, the settings are located in the ``TEMPLATES``, and the ``request`` module has moved. Add the following instead::
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
...
|
||||
'OPTIONS': {
|
||||
...
|
||||
'context_processors': (
|
||||
# Default ones first
|
||||
...
|
||||
# The one django-helpdesk requires:
|
||||
"django.template.context_processors.request",
|
||||
),
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
The following settings can be changed in your ``settings.py`` file to help change the way django-helpdesk operates. There are quite a few settings available to toggle functionality within django-helpdesk.
|
||||
|
||||
HELPDESK_DEFAULT_SETTINGS
|
||||
|
Loading…
Reference in New Issue
Block a user