From 54ba7ed40eb1bf465e8e8ca8a8d0ec63cce95708 Mon Sep 17 00:00:00 2001 From: tonio Date: Thu, 29 Oct 2009 09:56:52 +0100 Subject: [PATCH] Documentation update. New generic way to specify templates directory (no more hard coded absolute path). --- INSTALL | 5 +++++ settings_sample.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/INSTALL b/INSTALL index 5e80bc5f4..560e0ad41 100644 --- a/INSTALL +++ b/INSTALL @@ -324,6 +324,11 @@ DB_CONNECTIONS variable like this:: Replace values between <> with yours. +Finally, create a symbolic link to the templates directory inside the +main templates directory:: + + # ln -s extensions/amavis_quarantine/templates templates/amavis_quarantine + To be able to release messages, first take a look at this page:: http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quar-release diff --git a/settings_sample.py b/settings_sample.py index c4d18fe93..59e4134d8 100644 --- a/settings_sample.py +++ b/settings_sample.py @@ -1,4 +1,5 @@ # Django settings for mailng project. +import os.path DEBUG = False TEMPLATE_DEBUG = DEBUG @@ -71,6 +72,7 @@ TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. + os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'), ) INSTALLED_APPS = (