Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
panikdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
panikdb
Commits
be628a66
Commit
be628a66
authored
Jun 11, 2015
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow all logged in users to use ckeditor image management
parent
fb7190f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
panikdb/settings.py
panikdb/settings.py
+2
-0
panikdb/urls.py
panikdb/urls.py
+4
-1
No files found.
panikdb/settings.py
View file @
be628a66
...
...
@@ -178,6 +178,8 @@ LOGGING = {
CKEDITOR_CONFIGS
=
{
'default'
:
{
'filebrowserUploadUrl'
:
'/ckeditor/upload/'
,
'filebrowserBrowseUrl'
:
'/ckeditor/browse/'
,
'toolbar_Own'
:
[[
'Source'
,
'Format'
,
'-'
,
'Bold'
,
'Italic'
],
[
'NumberedList'
,
'BulletedList'
],
[
'JustifyLeft'
,
'JustifyCenter'
,
'JustifyRight'
,
'JustifyBlock'
],
...
...
panikdb/urls.py
View file @
be628a66
...
...
@@ -6,6 +6,8 @@ from django.contrib.auth.decorators import login_required
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
...
...
@@ -26,7 +28,8 @@ sqs = SearchQuerySet().models(Emission, Episode, NewsItem).facet('categories').f
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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment