diff --git a/core/templatetags/csrffaker.py b/core/templatetags/csrffaker.py new file mode 100644 index 0000000..824085d --- /dev/null +++ b/core/templatetags/csrffaker.py @@ -0,0 +1,10 @@ +import django +from django import template + +register = template.Library() +if django.VERSION[0] >=1 and django.VERSION[1] > 1: + pass +else: + + @register.tag + def csrf_token(parser, token): return ""