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
daf13cfe
Commit
daf13cfe
authored
Jul 08, 2014
by
benjaoming
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #273 from PolyLAN/fix_haystack_confict
Test the presence of the plugin haystack, not haystack himself
parents
d0e77d09
5754e97e
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 @
daf13cfe
...
@@ -77,18 +77,18 @@ CAN_ADMIN = getattr( django_settings, 'WIKI_CAN_ADMIN', None )
...
@@ -77,18 +77,18 @@ CAN_ADMIN = getattr( django_settings, 'WIKI_CAN_ADMIN', None )
ANONYMOUS
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS'
,
True
)
ANONYMOUS
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS'
,
True
)
# Globally enable write access for anonymous users, if true anonymous users will be treated
# 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
)
ANONYMOUS_WRITE
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS_WRITE'
,
False
)
# Globally enable create access for anonymous users
# 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
)
ANONYMOUS_CREATE
=
getattr
(
django_settings
,
'WIKI_ANONYMOUS_CREATE'
,
ANONYMOUS_WRITE
)
# Default setting to allow anonymous users upload access (used in
# 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
)
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
)
ACCOUNT_HANDLING
=
getattr
(
django_settings
,
'WIKI_ACCOUNT_HANDLING'
,
True
)
# Signup allowed? If it's not allowed, logged in superusers can still access
# 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 )
...
@@ -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
)
USE_BOOTSTRAP_SELECT_WIDGET
=
getattr
(
django_settings
,
'WIKI_USE_BOOTSTRAP_SELECT_WIDGET'
,
True
)
#: dottedname of class used to construct urlpatterns for wiki.
#: dottedname of class used to construct urlpatterns for wiki.
#:
#:
#: Default is wiki.urls.WikiURLPatterns. To customize urls or view handlers,
#: Default is wiki.urls.WikiURLPatterns. To customize urls or view handlers,
#: you can derive from this.
#: you can derive from this.
URL_CONFIG_CLASS
=
getattr
(
django_settings
,
'WIKI_URL_CONFIG_CLASS'
,
'wiki.urls.WikiURLPatterns'
)
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 - dotted path denoting where the search view Class is located
SEARCH_VIEW
=
getattr
(
SEARCH_VIEW
=
getattr
(
django_settings
,
django_settings
,
'WIKI_SEARCH_VIEW'
,
'WIKI_SEARCH_VIEW'
,
'wiki.views.article.SearchView'
'wiki.views.article.SearchView'
if
not
'
haystack'
in
django_settings
.
INSTALLED_APPS
if
not
'
wiki.plugins.haystack'
in
django_settings
.
INSTALLED_APPS
else
else
'wiki.plugins.haystack.views.HaystackSearchView'
'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