tags:

views:

42

answers:

2

Hey all

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.

Thanks

+1  A: 

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

stevejalim
+1  A: 

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.

n4cr