fnp
/
fnpdjango.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
610dacb
)
Textile import optional.
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 2 Oct 2019 09:52:23 +0000
(11:52 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 2 Oct 2019 09:52:23 +0000
(11:52 +0200)
fnpdjango/templatetags/fnp_markup.py
patch
|
blob
|
history
diff --git
a/fnpdjango/templatetags/fnp_markup.py
b/fnpdjango/templatetags/fnp_markup.py
index
aa15466
..
2588486
100644
(file)
--- a/
fnpdjango/templatetags/fnp_markup.py
+++ b/
fnpdjango/templatetags/fnp_markup.py
@@
-1,4
+1,9
@@
-import textile
+try:
+ import textile
+except ImportError:
+ # This is optional.
+ pass
+
from django import template
from django.utils.safestring import mark_safe
from ..utils.text import textilepl