From 6d7691791af58dcb11bd7e1d2b70623dc7143865 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 1 May 2011 19:58:38 +0100 Subject: [PATCH] Added settings hooks for TinyMCE. On debian apt-get install tinymce python-django-tinymce --- localsettingsserver.py | 3 +++ localsettingsubuntu.py | 3 +++ localsettingswindows.py | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/localsettingsserver.py b/localsettingsserver.py index 732c091..f5ed640 100644 --- a/localsettingsserver.py +++ b/localsettingsserver.py @@ -28,6 +28,9 @@ MEDIA_ADMIN_DIR = '/usr/lib/python2.4/site-packages/django/contrib/admin/media/' URL_ROOT = "http://troggle.cavingexpedition.com/" +TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/' +TINY_MCE_MEDIA_URL = URL_ROOT + 'tinymce_media/' + TEMPLATE_DIRS = ( "/home/expo/troggle/templates", # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". diff --git a/localsettingsubuntu.py b/localsettingsubuntu.py index 718af0e..3c7cce2 100644 --- a/localsettingsubuntu.py +++ b/localsettingsubuntu.py @@ -32,6 +32,9 @@ MEDIA_ROOT = '/home/goatchurch/expoweb/troggle/media/' URL_ROOT = 'http://127.0.0.1:8000' +TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/' +TINY_MCE_MEDIA_URL = URL_ROOT + 'tinymce_media/' + TEMPLATE_DIRS = ( "/home/goatchurch/expoweb/troggle/templates", # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". diff --git a/localsettingswindows.py b/localsettingswindows.py index 8a42918..dfee0a5 100644 --- a/localsettingswindows.py +++ b/localsettingswindows.py @@ -17,6 +17,9 @@ PHOTOS = 'C:\\Expo\\expoweb\\photos' URL_ROOT = 'http://127.0.0.1:8000' +TINY_MCE_MEDIA_ROOT = '/usr/share/tinymce/www/' +TINY_MCE_MEDIA_URL = URL_ROOT + 'tinymce_media/' + PYTHON_PATH = 'C:\\expoweb\\troggle\\' MEDIA_ROOT = 'C:/Expo/expoweb/troggle/media/' @@ -46,4 +49,4 @@ 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. -) \ No newline at end of file +)