Skip to content

Commit

Permalink
Test the presence of the plugin haystack, not haystack himself
Browse files Browse the repository at this point in the history
  • Loading branch information
the-glu committed Jun 19, 2014
1 parent 2671dbf commit 5754e97
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions wiki/conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,18 @@
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
Expand Down Expand Up @@ -118,17 +118,17 @@
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'
)
Expand Down

0 comments on commit 5754e97

Please sign in to comment.