Lately i found the django-storages app and DatabaseStorage[1]
Haven't test it though. But using custom storage along with Django
FileField seems like a good idea.

Regards

SÅ‚awek

[1] http://code.welldev.org/django-storages/wiki/DatabaseStorage

On 25 Cze, 04:26, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> On Friday 25 June 2010 05:19:36 Daniel Espinosa Ortiz wrote:
>
> > I have a PHP application using PostgreSQL backend. I'm storing files
> > on the database. I have different tables with a file (OID), filename
> > and mime to detect the row's associated file. I'm trying to port this
> > application to django.
>
> > How Can Use this blob with django? Exist some suggestions about it?
>
> a. write a script to store the blobs on the file system and insert the 
> filename
> into the db which is how django handles blobs
>
> b. write a custom field to handle this
>
> I suggest you do 'a' as then all the django and django addon file/image
> handling functions will be available to you.
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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