From: Radek Czajka Date: Wed, 2 Oct 2019 09:52:23 +0000 (+0200) Subject: Textile import optional. X-Git-Tag: 0.4.2~1 X-Git-Url: https://git.mdrn.pl/fnpdjango.git/commitdiff_plain/4db01353848079e0b4b3d0b4c0de29008b546473?ds=inline Textile import optional. --- diff --git a/fnpdjango/templatetags/fnp_markup.py b/fnpdjango/templatetags/fnp_markup.py index aa15466..2588486 100644 --- 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