Assuming post
is a reference in the context to an instance of a model containing a FileField named image_file
, that should work. Which of your views and templates are you trying this in?
Assuming post
is a reference in the context to an instance of a model containing a FileField named image_file
, that should work. Which of your views and templates are you trying this in?