Hi avinash thanks for ur reply.. i want that in Django1.1.1
as specified in this link
http://www.eflorenzano.com/blog/tag/multiple-databases/ i think  there is
one way to get multiple  db concept in django 1.1.1. but i cont able to get
the right way to do. if u know please reply. thank u.

On Thu, Mar 11, 2010 at 12:27 AM, Avinash Prasad <avinash...@gmail.com>wrote:

> Hi silaja,
> The best place to get a clear idea is to go to
> http://www.djangoproject.com and look for its documentation under multiple
> databases section.
> The support for multiple databases is there only in django's latest
> version.
> In settings.py file
> the DATABASES dictionary now has multiple keys where each key points to a
> particular database. For example,
> DATABASES = {'sqlite_db': { 'ENGINE': 'sqlite3', 'NAME' :' sqlite',
> 'HOSTNAME': , 'PORT':, }} here the key sqlite_db would be the database to
> which you would point to. Similarly you could also add other database with
> their appropriate names, and other configuartions pointed by an appropriate
> key.
> At view level fro saving the data,
> data = User.objects.using('sqlite_db').save() use the using() method to
> tell django where you want to save the entry.
> Similar rules apply for while retrieving data.
>
> Hope this helps.
> Do not forget to look into the API.
> Happy coding!!
>
> Avinash
>
>
> On Wed, Mar 10, 2010 at 11:34 PM, lakshmi silaja <lakshmi.sil...@gmail.com
> > wrote:
>
>> Hi,
>> i'm silaja, in my django project i want to work with multiple
>> database. i'm new to django. if any one know about multiple databases
>> concept please reply me. even u have any links regarding this concept
>> please reply.
>> thank you.
>>
>>
>> --
>> 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<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> 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<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

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