Skip to content

Commit

Permalink
Merge pull request #19 from Fiedzia/develop
Browse files Browse the repository at this point in the history
make spurl working with django 1.9 (missing part)
  • Loading branch information
bashu committed Dec 20, 2015
2 parents 852d73a + f72c1f3 commit 07b3cfc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spurl/templatetags/spurl.py
Expand Up @@ -195,8 +195,12 @@ def compile_string(self, template_string, origin):
that takes into account the tags and filter of the parser
that rendered the parent template"""
if settings.TEMPLATE_DEBUG:
from django.template.debug import DebugLexer, DebugParser
lexer_class, parser_class = DebugLexer, DebugParser
if django.VERSION <(1, 9):
from django.template.debug import DebugLexer, DebugParser
lexer_class, parser_class = DebugLexer, DebugParser
else:
from django.template.base import DebugLexer
lexer_class, parser_class = DebugLexer, Parser
else:
lexer_class, parser_class = Lexer, Parser
if django.VERSION <(1, 9):
Expand Down

0 comments on commit 07b3cfc

Please sign in to comment.