From 31a1462b1dbd42483b848aa92fc70a9bbf8f81ea Mon Sep 17 00:00:00 2001 From: Andreas Kotowicz Date: Tue, 3 May 2011 20:14:05 +0200 Subject: [PATCH] clarify how to change existing django 1.2.x installation so that static files that come with the latest django-helpdesk work. --- README.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.rst b/README.rst index 126e5085..fa0c4c59 100644 --- a/README.rst +++ b/README.rst @@ -63,6 +63,29 @@ ensure the latest changes are in use. You can continue to the 'Initial Configuration' area, if needed. +DJANGO 1.2.x and latest version of django-helpdesk +================================================== + +If you are running django 1.2.x then you will need to install django-staticfiles +(http://pypi.python.org/pypi/django-staticfiles/) and add the following to your +existing settings.py and urls.py files: + +settings.py: +STATIC_URL = "/static/" + +INSTALLED_APPS = ( + 'staticfiles', +) + +TEMPLATE_CONTEXT_PROCESSORS = ( + 'staticfiles.context_processors.static', +) + +urls.py: +from staticfiles.urls import staticfiles_urlpatterns +urlpatterns += staticfiles_urlpatterns() + + Installation ============