I am having error when trying to open url of Django Rest framework. It was working fine locally, but when I deployed it on server, I am having following error. On server I have django 1.9.
Exception Value:
'url' is not a valid tag or filter in tag library 'future'
Exception Location: /home/maxo/django-trunk/django/template/base.py in parse, line 506
Error during template rendering
In template /usr/local/lib/python2.7/dist-packages/rest_framework/templates/rest_framework/base.html, error at line 1
'url' is not a valid tag or filter in tag library 'future'
1
{% load url from future %}
2 {% load staticfiles %}
3 {% load rest_framework %}
4 <!DOCTYPE html>
5 <html>
6 <head>
7 {% block head %}
8
9 {% block meta %}
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
11 <meta name="robots" content="NONE,NOARCHIVE" />
NOTE : When I removed following line: {% load url from future %} from base.html Its working fine now, but then style of rest api is gone. Is there any other alternative to replace {% load url from future %}?