From 1431b3469f6f02040f8af170aa0aaf0d1f0a62a9 Mon Sep 17 00:00:00 2001 From: sanj Date: Wed, 24 Nov 2010 00:03:27 +0100 Subject: [PATCH] add django-ckeditor --- itf/settings.py | 4 ++++ itf/urls.py | 1 + requirements.txt | 1 + 3 files changed, 6 insertions(+) diff --git a/itf/settings.py b/itf/settings.py index dda7b1b..47b211f 100644 --- a/itf/settings.py +++ b/itf/settings.py @@ -16,6 +16,9 @@ LOGGING_OUTPUT_ENABLED = True PROJECT_PATH = os.path.dirname(__file__) PROJECT_ROOT = PROJECT_PATH +CKEDITOR_MEDIA_PREFIX = "/static/ckeditor/" +CKEDITOR_UPLOAD_PATH = join(PROJECT_PATH, "static/upload/images/") + ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) @@ -128,6 +131,7 @@ INSTALLED_APPS = ( 'debug_toolbar', 'sorl.thumbnail', 'south', + 'ckeditor', ) #overwrite default settings with local settings diff --git a/itf/urls.py b/itf/urls.py index 895121c..e45755d 100644 --- a/itf/urls.py +++ b/itf/urls.py @@ -14,6 +14,7 @@ urlpatterns = patterns('', # (r'^bhangar/', include('bhangar.foo.urls')), #(r'^search/', include('solango.urls')), (r'^comments/', include('django.contrib.comments.urls')), + (r'^ckeditor/', include('ckeditor.urls')), (r'^robots.txt$', direct_to_template, {'template': 'robots.txt', 'mimetype': 'text/plain'}), (r'^erang/', include('erang_organised.urls')), (r'^itf/$', 'festival.views.home'), diff --git a/requirements.txt b/requirements.txt index 76840a3..2f6a093 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ sorl-thumbnail django-extensions django-debug-toolbar South +django-ckeditor