Skip to content

Commit

Permalink
add lang code reading from settings.LANGUAGES to README, related to #80
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Jun 28, 2024
1 parent 1b37071 commit bbc0290
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ and `/de/some-file.html`. These URLs should work (and be translated) by your
site already. `django-distill` doesn't do any translation magic, it just
calls the URLs with the language code prefix.

**Note** While the default suggested method is to use `settings.DISTILL_LANGUAGES`
to keep things seperate `django-distill` will also check `settings.LANGUAGES` for
language codes.


# The `distill-local` command

Expand Down Expand Up @@ -323,7 +327,7 @@ threads, this can speed up rendering. Defaults to `1` thread.
this flag will create a static HTML `<meta http-equiv="refresh" content="...">`
style redirect at `/old/index.html` to `/new/`.

**Note** If any of your views contain a Python error then rendering will fail
**Note** If any of your views contain a Python error then rendering will fail
then the stack trace will be printed to the terminal and the rendering command
will exit with a status code of 1.

Expand Down

0 comments on commit bbc0290

Please sign in to comment.