From 4db01353848079e0b4b3d0b4c0de29008b546473 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 2 Oct 2019 11:52:23 +0200 Subject: [PATCH] Textile import optional. --- fnpdjango/templatetags/fnp_markup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.20.1