Daniel Roseman wrote:
> On Feb 24, 2:36 pm, Tonu Mikk <tm...@umn.edu> wrote:
>   
>> Then I save it with the above method.  The problem I am running into, is 
>> that when saving the file, it gives is a different name which is the 
>> original name with an
>> "_" at the end.  The link in the database also points to the file with this 
>> new name.  How can I simply create a link in the database to the original 
>> file?
>>
>>     
>
> Use a FilePathField rather than a FileField. This just takes a path,
> rather than a file object. See:
> http://docs.djangoproject.com/en/dev/ref/models/fields/#filepathfield
> --
>   
Thanks, Daniel!  This is exactly what I was looking for.

Tonu


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to