2👍
✅
That’s because your content is evaluated only once: when urls.py
is imported. I think you need a normal view here. Or you can pass callables (or other lazy objects) to context, not evaluated ones.
Source:stackexchange.com