Re: Django and Oracle Cartridges

2010-03-19 Thread Tom Evans
On Fri, Mar 19, 2010 at 1:21 PM, huw_at1  wrote:
> Hi Tom,
>
> Sorry if I gave the impression that I had not read around before
> posting here. Believe it or not I already have the top 5 hits on this
> search marked as read. Was it a particular page you were referring to
> since all the ones I have read are either out of date or mention
> workarounds?
>
> Cheers
>
> Huw
>

s/workaround/solution/

The first link describes a blob storage engine, for storing files in
blobs in the database:
http://www.djangosnippets.org/snippets/1305/

It also mentions it has been added as part of django-storages:
http://code.welldev.org/django-storages/wiki/DatabaseStorage

Storage engines are used for storing files, see:
http://docs.djangoproject.com/en/1.1/howto/custom-file-storage/

If you actually wanted to store blob data as part of a model, then the
third link has a solution:
http://stackoverflow.com/questions/759288/how-do-you-put-a-file-in-a-fixture-in-django#764408

If you want to know why there isn't a blob field in django by default,
try this ticket:
http://code.djangoproject.com/ticket/2417

Cheers

Tom

-- 
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.



Re: Django and Oracle Cartridges

2010-03-19 Thread huw_at1
Hi Tom,

Sorry if I gave the impression that I had not read around before
posting here. Believe it or not I already have the top 5 hits on this
search marked as read. Was it a particular page you were referring to
since all the ones I have read are either out of date or mention
workarounds?

Cheers

Huw

On Mar 19, 12:26 pm, Tom Evans  wrote:
> On Fri, Mar 19, 2010 at 11:35 AM, huw_at1  wrote:
> > I guess what I am asking is - can Django handle BLOBs in its models?
>
> > On 18 Mar, 16:55, huw_at1  wrote:
> >> Hi
>
> >> I currently have an oraclecartridgewhich performs a specific type of
> >> search on large binary objects (which thecartridgealso creates and
> >> indexes). I want to try and integrate thecartridgeinto a web app
> >> using Django however from what I have read so far it appears that
> >> Django is not designed to store BLOBs. I think I can encode the SQL
> >> for thecartridgecommands as Django allows for this. My main concern
> >> is how I go about storing these BLOBS however. Does anyone know about
> >> this or have any experience with integrating other Oracle cartridges
> >> into Django?
>
> >> Many thanks
>
> >> Huw
>
> http://lmgtfy.com/?q=django+blob
>
> Cheers
>
> Tom

-- 
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.



Re: Django and Oracle Cartridges

2010-03-19 Thread Tom Evans
On Fri, Mar 19, 2010 at 11:35 AM, huw_at1  wrote:
> I guess what I am asking is - can Django handle BLOBs in its models?
>
> On 18 Mar, 16:55, huw_at1  wrote:
>> Hi
>>
>> I currently have an oraclecartridgewhich performs a specific type of
>> search on large binary objects (which thecartridgealso creates and
>> indexes). I want to try and integrate thecartridgeinto a web app
>> using Django however from what I have read so far it appears that
>> Django is not designed to store BLOBs. I think I can encode the SQL
>> for thecartridgecommands as Django allows for this. My main concern
>> is how I go about storing these BLOBS however. Does anyone know about
>> this or have any experience with integrating other Oracle cartridges
>> into Django?
>>
>> Many thanks
>>
>> Huw
>

http://lmgtfy.com/?q=django+blob

Cheers

Tom

-- 
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.



Re: Django and Oracle Cartridges

2010-03-19 Thread huw_at1
I guess what I am asking is - can Django handle BLOBs in its models?

On 18 Mar, 16:55, huw_at1  wrote:
> Hi
>
> I currently have an oraclecartridgewhich performs a specific type of
> search on large binary objects (which thecartridgealso creates and
> indexes). I want to try and integrate thecartridgeinto a web app
> using Django however from what I have read so far it appears that
> Django is not designed to store BLOBs. I think I can encode the SQL
> for thecartridgecommands as Django allows for this. My main concern
> is how I go about storing these BLOBS however. Does anyone know about
> this or have any experience with integrating other Oracle cartridges
> into Django?
>
> Many thanks
>
> Huw

-- 
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.



Django and Oracle Cartridges

2010-03-18 Thread huw_at1
Hi

I currently have an oracle cartridge which performs a specific type of
search on large binary objects (which the cartridge also creates and
indexes). I want to try and integrate the cartridge into a web app
using Django however from what I have read so far it appears that
Django is not designed to store BLOBs. I think I can encode the SQL
for the cartridge commands as Django allows for this. My main concern
is how I go about storing these BLOBS however. Does anyone know about
this or have any experience with integrating other Oracle cartridges
into Django?

Many thanks

Huw

-- 
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.