Help get this topic noticed by sharing it on Twitter, Facebook, or email.

http://127.0.0.1:8000/api/ 'url' is not a valid tag or filter in tag library 'future'

i am trying the code in Lghtweight Django chapter 4 resful api and i am getting error when i try http://127.0.0.1:8000/api/

TemplateSyntaxError at /api/
'url' is not a valid tag or filter in tag library 'future'
1 person has
this question
+1
Reply
  • Hi Eli,

    Which version of Django are you using? Is it 1.9 or later? If so, you are getting that error because this page below says that {% load url from future %} removed in Django 1.9 -
    stackoverflow.com/questions/5653497/django-load-url-from-future-yields-error-url-is-not-a-valid-tag-libra

    I would recommend using the version used in the book Django 1.8.3

    Best regards,
    Chris Olson
    O'Reilly Book Support
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited kidding, amused, unsure, silly