Take the 2-minute tour ×

I wanted to know how is it possible in django to bind an already uploaded file (stored in the file system of server) to a Model FileField. This way I want to have my edit page of that model to prepopulate the FileField with this file.


share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Well I found the answer. It was quite easy actually. you just need to set the FileField value to some string and it will point to that file.

The point is that the path specified should be correct otherwise you get a 404 error when trying to access it.

share|improve this answer
add comment

Sounds like the accepted answer on this post is what you're after

share|improve this answer
add comment

Your Answer


