Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
5754e97e
Commit
5754e97e
authored
Jun 19, 2014
by
Maximilien Cuony
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test the presence of the plugin haystack, not haystack himself
parent
2671dbf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
wiki/conf/settings.py
+9
-9
No files found.
wiki/conf/settings.py
View file @
5754e97e
...
...
@@ -77,18 +77,18 @@ CAN_ADMIN = getattr( django_settings, 'WIKI_CAN_ADMIN', None )
ANONYMOUS
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS'
,
True
)
# Globally enable write access for anonymous users, if true anonymous users will be treated
# as the others_write boolean field on models.Article.
# as the others_write boolean field on models.Article.
ANONYMOUS_WRITE
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS_WRITE'
,
False
)
# Globally enable create access for anonymous users
# Defaults to ANONYMOUS_WRITE.
# Defaults to ANONYMOUS_WRITE.
ANONYMOUS_CREATE
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS_CREATE'
,
ANONYMOUS_WRITE
)
# Default setting to allow anonymous users upload access (used in
# plugins.attachments and plugins.images).
# plugins.attachments and plugins.images).
ANONYMOUS_UPLOAD
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS_UPLOAD'
,
False
)
# Sign up, login and logout views should be accessible
# Sign up, login and logout views should be accessible
ACCOUNT_HANDLING
=
getattr
(
django_settings
,
'WIKI_ACCOUNT_HANDLING'
,
True
)
# Signup allowed? If it's not allowed, logged in superusers can still access
...
...
@@ -118,17 +118,17 @@ SHOW_MAX_CHILDREN = getattr( django_settings, 'WIKI_SHOW_MAX_CHILDREN', 20 )
USE_BOOTSTRAP_SELECT_WIDGET
=
getattr
(
django_settings
,
'WIKI_USE_BOOTSTRAP_SELECT_WIDGET'
,
True
)
#: dottedname of class used to construct urlpatterns for wiki.
#:
#:
#: Default is wiki.urls.WikiURLPatterns. To customize urls or view handlers,
#: you can derive from this.
URL_CONFIG_CLASS
=
getattr
(
django_settings
,
'WIKI_URL_CONFIG_CLASS'
,
'wiki.urls.WikiURLPatterns'
)
# Search view - dotted path denoting where the search view Class is located
SEARCH_VIEW
=
getattr
(
django_settings
,
'WIKI_SEARCH_VIEW'
,
'wiki.views.article.SearchView'
if
not
'
haystack'
in
django_settings
.
INSTALLED_APPS
django_settings
,
'WIKI_SEARCH_VIEW'
,
'wiki.views.article.SearchView'
if
not
'
wiki.plugins.haystack'
in
django_settings
.
INSTALLED_APPS
else
'wiki.plugins.haystack.views.HaystackSearchView'
)
...
...
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