change the inhibition value of *_SAVE_AS to ''

Previously, the documentation claimed the value of None for this purpose
even though False was used for certain defaults. The values False and
None cause warnings to be emitted from URLWrapper._from_settings though,
so the new way of inhibiting page generation is to set a *_SAVE_AS value
to the empty string.
This commit is contained in:
Helmut Grohne 2014-03-31 19:38:49 +02:00
commit 3f304a2e92
3 changed files with 8 additions and 8 deletions

View file

@ -269,9 +269,9 @@ Setting name (default value) What does it do?
`TAG_SAVE_AS` (``'tag/{slug}.html'``) The location to save the tag page.
`AUTHOR_URL` (``'author/{slug}.html'``) The URL to use for an author.
`AUTHOR_SAVE_AS` (``'author/{slug}.html'``) The location to save an author.
`YEAR_ARCHIVE_SAVE_AS` (False) The location to save per-year archives of your posts.
`MONTH_ARCHIVE_SAVE_AS` (False) The location to save per-month archives of your posts.
`DAY_ARCHIVE_SAVE_AS` (False) The location to save per-day archives of your posts.
`YEAR_ARCHIVE_SAVE_AS` (``''``) The location to save per-year archives of your posts.
`MONTH_ARCHIVE_SAVE_AS` (``''``) The location to save per-month archives of your posts.
`DAY_ARCHIVE_SAVE_AS` (``''``) The location to save per-day archives of your posts.
`SLUG_SUBSTITUTIONS` (``()``) Substitutions to make prior to stripping out
non-alphanumerics when generating slugs. Specified
as a list of 2-tuples of ``(from, to)`` which are
@ -282,7 +282,7 @@ Setting name (default value) What does it do?
If you do not want one or more of the default pages to be created (e.g.,
you are the only author on your site and thus do not need an Authors page),
set the corresponding ``*_SAVE_AS`` setting to ``None`` to prevent the
set the corresponding ``*_SAVE_AS`` setting to ``''`` to prevent the
relevant page from being generated.
`DIRECT_TEMPLATES`