diff --git a/README.rst b/README.rst index a9783d9..5dd9686 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ write lock (default: 300) ``MARKUPWIKI_CREATE_MISSING_ARTICLES`` - if True when attempting to go to an article that doesn't exist, user will be redirected to the /edit/ page. If -False user will get a 404. +False user will get a 404. (default: True) ``MARKUPWIKI_DEFAULT_MARKUP_TYPE`` - default markup type to use (default: markdown) @@ -49,3 +49,5 @@ callable is used to 'render' a markup type. Example:: ('markdown', markdown.markdown), ('ReST', render_rest) ) + +Defaults to ``django-markupfield``'s detected markup types. diff --git a/markupwiki/views.py b/markupwiki/views.py index 6de8c03..06935df 100644 --- a/markupwiki/views.py +++ b/markupwiki/views.py @@ -11,7 +11,7 @@ from django.utils.functional import wraps from markupwiki.models import Article, PUBLIC, DELETED, LOCKED from markupwiki.forms import ArticleForm, StaffModerationForm, ArticleRenameForm -CREATE_MISSING_ARTICLE = getattr(settings, 'MARKUPWIKI_CREATE_MISSING_ARTICLES', False) +CREATE_MISSING_ARTICLE = getattr(settings, 'MARKUPWIKI_CREATE_MISSING_ARTICLES', True) def title_check(view): def new_view(request, title, *args, **kwargs):