File: compat.py

package info (click to toggle)
django-simple-redis-admin 1.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 176 kB
  • sloc: python: 153; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import django


def get_library():
    if django.VERSION >= (1, 9):
        from django.template.library import Library
    else:
        from django.template.base import Library
    return Library


if django.VERSION < (1, 5):
    from django.templatetags.future import url
else:
    from django.template.defaulttags import url