CKEDITOR_CONFIGS = {
'default': {
+ 'filebrowserUploadUrl': '/ckeditor/upload/',
+ 'filebrowserBrowseUrl': '/ckeditor/browse/',
'toolbar_Own': [['Source', 'Format', '-', 'Bold', 'Italic'],
['NumberedList','BulletedList'],
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
from django.contrib import admin
+from ckeditor.views import upload as ckeditor_upload
+from ckeditor.views import browse as ckeditor_browse
from haystack.views import search_view_factory
from haystack.forms import FacetedSearchForm
from haystack.query import SearchQuerySet
urlpatterns = patterns('',
url(r'^$', 'panikdb.views.home', name='home'),
- (r'^ckeditor/', include('ckeditor.urls')),
+ url(r'^ckeditor/upload/', login_required(ckeditor_upload)),
+ url(r'^ckeditor/browse/', login_required(ckeditor_browse)),
url(r'^search/', search_view_factory(view_class=FacetedSearchView,
form_class=FacetedSearchForm, searchqueryset=sqs), name='haystack_search'),