-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added i18n support to django2jinja (not complete support, but the bes…
…t you can get before django fixes a bug in i18n handling) --HG-- branch : trunk
- Loading branch information
Showing
3 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from django.conf import settings | ||
settings.configure(TEMPLATE_DIRS=['templates'], TEMPLATE_DEBUG=True) | ||
|
||
from django2jinja import convert_templates, Writer | ||
|
||
settings.configure(TEMPLATE_DIRS=['templates'], TEMPLATE_DEBUG=True) | ||
writer = Writer(use_jinja_autoescape=True) | ||
convert_templates('converted', writer=writer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters