Re: Multiple Database problem

2024-08-18 Thread Pandiya rajan
to multiple database with a single app. How? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view th

Re: Multiple Database problem

2024-08-18 Thread suraj shaw
Yes, Its possible. Please follow this - https://docs.djangoproject.com/en/5.0/topics/db/multi-db/ Thanks Suraj On Wed, Aug 14, 2024 at 8:45 PM Dhanushpathi Prakash < dhanushpathiprak...@gmail.com> wrote: > Is there is possible to multiple database with a single app. How? > > --

Re: Multiple Database problem

2024-08-14 Thread Muhammad Juwaini Abdul Rahman
This is the first Google result for "django multiple databases": https://docs.djangoproject.com/en/5.0/topics/db/multi-db/ On Wed, 14 Aug 2024 at 23:15, Dhanushpathi Prakash < dhanushpathiprak...@gmail.com> wrote: > Is there is possible to multiple database with a single app

Multiple Database problem

2024-08-14 Thread Dhanushpathi Prakash
Is there is possible to multiple database with a single app. How? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegrou

Re: multiple database

2020-10-11 Thread Dvs Khamele
saved a life, it would be as if he saved the life of all mankind. >> >> >> On Fri, Oct 9, 2020 at 6:05 PM Suhaib Ali wrote: >> >>> Hello everyone, >>> >>> i have some doubt regarding django database. i want to create multiple >>> datab

Re: Django multiple database tests won't start

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? We can help you in this and related tasks at fair prices. Reply or send email to divy...@pythonmate.com Best Regards, Divyesh Khamele, Pythonmate On Sat, 10 Oct 2020, 12:28 am Alexander Shalin, wrote: > > Hello forum, > > I maintain one ap

Django multiple database tests won't start

2020-10-09 Thread Alexander Shalin
Hello forum, I maintain one application based on Django. It controls Postgresql database. Tests cover classes and methods. Everything had been working fine and dandy. I added another Postgresql database and created model classes for its tables. No problems with access to two databases. I didn

Re: multiple database

2020-10-09 Thread Chetan Ganji
erse 32: > If anyone killed a person, not in retaliation of murder, or (and) to > spread mischief in the land - it would be as if he killed all mankind, & if > anyone saved a life, it would be as if he saved the life of all mankind. > > > On Fri, Oct 9, 2020 at 6:05 PM Suhaib

Re: multiple database

2020-10-09 Thread Khaleel Ahmed H. M. Shariff
database. i want to create multiple > database according to the user wish. for example i want to create a company > so each and every company needs their own database while creating the > company > > -- > You received this message because you are subscribed to the Google Groups > &

Re: multiple database

2020-10-09 Thread Kasper Laudrup
On 09/10/2020 09.28, Suhaib Ali wrote: Hello everyone, i have some doubt regarding django database. i want to create multiple database according to the user wish. for example i want to create a company so each and every company needs their own database while creating the company https

multiple database

2020-10-09 Thread Suhaib Ali
Hello everyone, i have some doubt regarding django database. i want to create multiple database according to the user wish. for example i want to create a company so each and every company needs their own database while creating the company -- You received this message because you are

Error in Connecting Multiple Database Django ( 'DatabaseOperations' object has no attribute 'geo_db_type' )

2020-06-29 Thread Pradyum Gupta
Hi, Can anyone please sort the issue. https://stackoverflow.com/q/62630722/7999665 Regards Pradyum -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Error in Connecting Multiple Database Django ( 'DatabaseOperations' object has no attribute 'geo_db_type' )

2020-06-29 Thread Pradyum Gupta
I am using multiple databases in Django, On the current server, PostGIS is installed and am trying to connect POSTGRESQL from another server, **settings.py** ```python DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'db_name_1',

Re: Multiple Database Setup

2019-10-30 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ On Wed, 30 Oct 2019, 14:39 Rajat Chopra, wrote: > I wish to create a project with 2 apps. Each app will have its own > database - one for payments and another for statements. > > I have created a set of models within the models.py for th

Multiple Database Setup

2019-10-30 Thread Rajat Chopra
I wish to create a project with 2 apps. Each app will have its own database - one for payments and another for statements. I have created a set of models within the models.py for the payments app and another set of models inside within the models.py for the statements app. When I run the com

Re: Multiple Database Setup problem !?

2018-11-02 Thread 'Tom Evans' via Django users
Hi David Your router isn't configured correctly. This applies to all the allow_foo() methods, but see allow_migrate [1] as an example: Determine if the migration operation is allowed to run on the database with alias db. Return True if the operation should run, False if it shouldn’t run, or Non

Multiple Database Setup problem !?

2018-10-30 Thread David Lubomirov
Hello, In my project I have 3 applications, and I'm trying to split them across 2 databases. More specifically 2 of the apps and Django "auth" application should work with the first database, and the last application should remain in the second database. These are the DB settings: DATABASE_RO

Query about integration multiple database using mongodb

2017-07-12 Thread Shivam Taneja
Dear all I have a query using integration of multiple database support using mongoDB am strucking while implementing the multiple databases mongodb with django if you have any idea about it please provide me a link about it Regards Shivam -- You received this message because you are

Query abouhe multiple database support using mongoDB

2017-07-12 Thread Shivam Taneja
Dear all I have a requirement to integrate the multiple database using mongodb is this possible to integrate the multiple database with mongodb and if possible then whats the process involved in this process Regards Shvam Taneja -- You received this message because you are subscribed to the

Test database issue when multiple database

2017-01-13 Thread Sylvain Duquenne
Hi everyone, I found a weird behaviour when I run my Django tests, it doesn't always use the test database, sometimes it uses the production database and truncate it! I looked at the Django source code and the cause of this behaviour seems to be in 'django/test/utils.py' in 'setup_databases()

Re: Opening up multiple database connections per request?

2014-02-04 Thread jeff do
Thank you Russ. Your solution to define multiple database sources to a single database was very straightforward On Tuesday, January 21, 2014 4:11:43 PM UTC-8, Russell Keith-Magee wrote: > > Hi Jeff, > > Correct - Django has one database connection per request. > > If you wan

Re: Opening up multiple database connections per request?

2014-01-21 Thread Russell Keith-Magee
is undocumented API, so you're on your own if you take this path. Yours, Russ Magee %-) On Wed, Jan 22, 2014 at 7:40 AM, jeff do wrote: > Is it possible to open up multiple database connections inside of one > request in Django? I am using Django 1.6 and Python3.3. > > In

Opening up multiple database connections per request?

2014-01-21 Thread jeff do
Is it possible to open up multiple database connections inside of one request in Django? I am using Django 1.6 and Python3.3. In my use case, I have a web application that executes raw SQL against a data warehouse we have. For example, one page may require five different SQL queries to be

status of multiple database schemas in Django

2013-05-27 Thread Fabio Caritas Barrionuevo da Luz
Hi, this[1][2] is the best solution to the problem of multiple database schemas? Is there any idea when this feature will be supported by Django's ORM? ps: Sorry for my ugly english. [1] https://code.djangoproject.com/ticket/6148 [2] https://github.com/cbmi/django/c

Re: Question on Multiple Database Connections

2012-12-14 Thread Matt Woodward
On Thursday, December 13, 2012 8:01:13 AM UTC-8, ke1g wrote: > > > Just a shot in the dark: Maybe if, since you're not using the ORM on the > 'other' database, you shouldn't use django-pyodbc, but rather just pyobdc. > I should have said this earlier but I had the same thought and tried doing it

Re: Question on Multiple Database Connections

2012-12-13 Thread Bill Freeman
On Wed, Dec 12, 2012 at 7:49 PM, Matthew Woodward wrote: > I'm working on an application that uses two databases -- one is the main > database that Django ORM talks to, where sessions are stored, etc. and the > other is an external database where we need to run some storedprocs to > retrieve some

Question on Multiple Database Connections

2012-12-12 Thread Matthew Woodward
I'm working on an application that uses two databases -- one is the main database that Django ORM talks to, where sessions are stored, etc. and the other is an external database where we need to run some storedprocs to retrieve some data. This is all working fine for the most part but I ran into a

Re: ContentType and multiple database

2012-08-02 Thread Melvyn Sopacua
On 1-8-2012 17:27, Àlex Pérez wrote: > Hello, > > I want to take objects of another project that i don't have installed. > I can have the contenttype of the external object but I can't take the > object I understand that, take the object remotly of a model thah you > dosen't have have the class i

ContentType and multiple database

2012-08-01 Thread Àlex Pérez
Hello, I want to take objects of another project that i don't have installed. I can have the contenttype of the external object but I can't take the object I understand that, take the object remotly of a model thah you dosen't have have the class is not possible (I think...) but if i want only a

How does the multiple database concept work after django 1.2

2012-03-02 Thread Amit Sethi
Hi all , My app has started breaking after moving to django 1.3 . I don't really understand why? I am working using site framework and given model definition through app_label. The only majot change as I can see is that I use UUID Fields rather than AutoField. Now somehow i see that my app is try

Re: Multiple database Router

2011-10-26 Thread Simon Riggs
On Wed, Oct 26, 2011 at 4:19 PM, Tom Evans wrote: > Sure, all cars run on top of tarmac, > but you are unlikely to find a tarmac specialist on a car forum, you > are better off asking in a more appropriate place. Happy to bite on that one and am chuckling away at that. Databases are the engines

Re: Multiple database Router

2011-10-26 Thread Tom Evans
On Wed, Oct 26, 2011 at 3:59 PM, Gabriela wrote: > I need to implemente Asynchornous multimaster replication > implemented in Linux and Windows OS > > Bucardo is a great option but it doesnt works in Windows > > Any help would be welcome, Im new in this and I need a solution, Im > stuck installing

Re: Multiple database Router

2011-10-26 Thread Gabriela
I need to implemente Asynchornous multimaster replication implemented in Linux and Windows OS Bucardo is a great option but it doesnt works in Windows Any help would be welcome, Im new in this and I need a solution, Im stuck installing softwares and configuring URLs and IPs Cheers Gabi On Oct 2

Re: Multiple database Router

2011-10-26 Thread Tom Evans
On Wed, Oct 26, 2011 at 3:38 PM, Gabriela wrote: > Thanks Tom, > > so Django dont allow to make replication? > Django is a web application framework, database replication is orthogonal to that. My current setup has a multi data centre, multi master replication, with a couple of read slaves in ea

Re: Multiple database Router

2011-10-26 Thread Gabriela
Can you suggest me , if you know, any software replicator, I had only configure with RubyRep and SymmetricDS but I need more options? I have been trying wit DBReplicator but is impossible. Do you handle this theme about replication? Cheers On Oct 26, 4:38 pm, Gabriela wrote: > Thanks Tom, > > so

Re: Multiple database Router

2011-10-26 Thread Gabriela
Thanks Tom, so Django dont allow to make replication? On Oct 26, 4:32 pm, Tom Evans wrote: > On Wed, Oct 26, 2011 at 3:24 PM, Gabriela wrote: > > I need to synchronize multiple databases, i have readed the > >https://docs.djangoproject.com/en/1.3/topics/db/multi-db/where they > > explain how to

Re: Multiple database Router

2011-10-26 Thread Tom Evans
On Wed, Oct 26, 2011 at 3:24 PM, Gabriela wrote: > I need to synchronize multiple databases, i have readed the > https://docs.djangoproject.com/en/1.3/topics/db/multi-db/ where they > explain how to make this. > > > but i dont understand what do they refer with 'myapp' and 'other', are > this tabl

Multiple database Router

2011-10-26 Thread Gabriela
I need to synchronize multiple databases, i have readed the https://docs.djangoproject.com/en/1.3/topics/db/multi-db/ where they explain how to make this. but i dont understand what do they refer with 'myapp' and 'other', are this tables from the database? I dont understand what do they mean. I

Re: Multiple Database Routing Based on Site

2011-09-02 Thread Mo Mughrabi
What I did is create an attribute in my models and called it model.py class Data(models.Model): # connection_name is my database name which points to the name from settings.py connection_name = "gis" name = models.CharField(max_length=50) area = models.IntegerField() and created a

Re: Multiple Database Routing Based on Site

2011-09-02 Thread Kevin
The only solution I can directly think of, since the SITE_ID is in settings.py would be to use some python logic to determine the database for that site. eg. if SITE_ID == 1: ... Database settings for site 1 here ... Use an if-then like this in your settings.py. Now if what your going after

Multiple Database Routing Based on Site

2011-09-01 Thread Terribyte
I had a kind of crazy idea and I wanted to bounce it off of some people with a lot more django experience than I. Here's my scenario... I would like 1 code base, this code base services potentially hundreds of businesses, each of which I want to have a copy of the same schema but with data only r

Re: Multiple database queries

2011-03-08 Thread VidJa Hunter
I totally agree with the one database solution, which would be my choice, if there were no legal issues attached to the different datasets. On Mon, Mar 7, 2011 at 10:49 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hey Vidja, > > May I ask why so many dat

Re: Multiple database queries

2011-03-07 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, I should make myself more clear. The complex lookups (such as range queries, full text search etc) take place inside Sphinx Search, then we do ID lookups from the database with the results from Sphinx. You can do column lookups as well on Sphinx >=0.99, so if you wanted to lookup the datab

Re: Multiple database queries

2011-03-07 Thread Cal Leeming [Simplicity Media Ltd]
Hey Vidja, May I ask why so many database instances are required? In my experience, if you get to the point where you really need this many, it's usually better to use a solution like Sphinx Search Engine, then employ your database as a heavy key/value store (with the bare necessary unique compoun

Multiple database queries

2011-03-07 Thread Vidja
Hi all, does anyone have experience with querying against multiple databases and performance issues? My plan is to query against 15-200 instances of a database (Postgres on a 8 core 32 GB machine, each db about 200 mb) , all with the same schema (an thus model file), but with different data. Are

Re: Multiple database issue v1.2.3 - Django reading the wrong database

2010-10-27 Thread Russell Keith-Magee
On Wed, Oct 27, 2010 at 1:13 AM, Stodge wrote: > I have two PostgreSQL (postgresql_psycopg2) databases defined in my > settings; default and scenes. > > If I perform a filter using the 'scenes' DB I get the expected > results: > > Scene.objects.filter(name__contains='ME').using('scenes') > [, ] >

Re: Multiple database issue v1.2.3 - Django reading the wrong database

2010-10-26 Thread Stodge
Pasted misleading traceback, as I created the scene table in the default database to verify this. Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/site-packages/django/db/models/manager.py", line 132, in get return self.get_query_set().get(*args, **kwargs)

Multiple database issue v1.2.3 - Django reading the wrong database

2010-10-26 Thread Stodge
I have two PostgreSQL (postgresql_psycopg2) databases defined in my settings; default and scenes. If I perform a filter using the 'scenes' DB I get the expected results: Scene.objects.filter(name__contains='ME').using('scenes') [, ] If I perform a get(), Django seems to get completely confused a

Re: How to get gallery thumbnails without multiple database queries

2010-07-19 Thread Martin Tiršel
On Mon, 19 Jul 2010 00:50:04 +0200, Martin Tiršel wrote: Hello, I have: class Gallery(models.Model): ... class Image(models.Model): gallery = models.ForeignKey(Gallery) ... Now, on some page, I am listing all galleries and I want for every gallery first three (o

How to get gallery thumbnails without multiple database queries

2010-07-18 Thread Martin Tiršel
Hello, I have: class Gallery(models.Model): ... class Image(models.Model): gallery = models.ForeignKey(Gallery) ... Now, on some page, I am listing all galleries and I want for every gallery first three (or three flagged, ...) images as thumbnails. I can go through

Re: Multiple Database Simple Example

2010-05-14 Thread Jani Monoses
if model._meta.app_label == 'myapp' and model._meta.object_name == 'ModelInDatabase2Name': That is - instead of just checking the app, check the app and the model name. Install the router, and any query involving ModelInDatabase2Name will be directed to the 'other' database. It would be help

Re: Multiple Database Simple Example

2010-05-13 Thread GRoby
Russ Magee, Thanks for the quick response, your message explained what I was not understanding and I was able to get my code working. :) Gregory Roby On May 13, 10:44 am, Russell Keith-Magee wrote: > On Thu, May 13, 2010 at 10:27 PM, GRoby wrote: > > Hello, > > > I am using Django 1.2 RC 1

Re: Multiple Database Simple Example

2010-05-13 Thread Russell Keith-Magee
On Thu, May 13, 2010 at 10:27 PM, GRoby wrote: > Hello, > > I am using Django 1.2 RC 1 and have setup multiple databases.  I have > everything working if I manually specify .using, for example: > > SomeObjects = ModelInDefaultDatabase.objects.all()  #This Works > > SomeObjects = ModelInDatabase2Na

Multiple Database Simple Example

2010-05-13 Thread GRoby
Hello, I am using Django 1.2 RC 1 and have setup multiple databases. I have everything working if I manually specify .using, for example: SomeObjects = ModelInDefaultDatabase.objects.all() #This Works SomeObjects = ModelInDatabase2Name.objects.using('Database2').all() #This also Works How ca

static behaviour of multiple database functionality.

2010-04-18 Thread Harsha Reddy
Hi All, Could you please help me work around the following behaviour in Django framework Actual Behaviour: ./manage.py shell >>> from multidb.foo.models import * >>> from multidb.settings import * >>> DATABASES['secondarydb']['NAME'] = '/usr/src/multidb/secnario1.db' >>> res = Result.objects.usi

Re: problem with multiple database with django 1.1.1 please help

2010-01-19 Thread David De La Harpe Golden
chiranjeevi.muttoju wrote: > Hi friends, > > i am working with django1.1.1, now i want to connect django with > multiple database, could you people please help me how to achieve > this. Django 1.1.1 /does not support/ multiple databases. You therefore cannot expect much in the w

problem with multiple database with django 1.1.1 please help

2010-01-18 Thread chiranjeevi.muttoju
Hi friends, i am working with django1.1.1, now i want to connect django with multiple database, could you people please help me how to achieve this. if possible please send me the sample application using django multiple db.. i tried it by reading some procedure in the net.. but i cont able to

Re: multiple database on django please helpme..

2010-01-12 Thread chiranjeevi muttoju
hi Gonzalo, i did nt find any help there.. could u please bclearer.. i really ned it.. if u know plz help me... On Tue, Jan 12, 2010 at 7:35 PM, Gonzalo Delgado wrote: > El 12/01/10 11:02, Shawn Milochik escribió: > > This will help you get help: > > > > http://catb.org/~esr/faqs/smart-questions.

Re: multiple database on django please helpme..

2010-01-12 Thread Gonzalo Delgado
El 12/01/10 11:02, Shawn Milochik escribió: > This will help you get help: > > http://catb.org/~esr/faqs/smart-questions.html > +1 -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: multiple database on django please helpme..

2010-01-12 Thread Shawn Milochik
This will help you get help: http://catb.org/~esr/faqs/smart-questions.html -- 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 djang

multiple database on django please helpme..

2010-01-12 Thread chiranjeevi.muttoju
hello all could u please help me.. i want to use the multiple database in django.. i fallowed somany procedures.. but i cont able to get how to use.. could u please tell me in detailed the process for multiple databases in django.. with sample settings.. please help me if u know this.. thank

Multiple Database in 1.0.2 with custom manager

2009-04-05 Thread Justin
://www.djangrrl.com/view/multiple-database-connection-a-simple-use-case/ but have had no luck. I get an empty tuple when returning MyCustomModel.objects.all(). Here is what I have in manager.py from django.db import models from django.db.backends.mysql.base import DatabaseWrapper from django.conf import settings

Re: Multiple Database

2008-11-26 Thread Malcolm Tredinnick
On Wed, 2008-11-26 at 11:46 -0600, Tim Chase wrote: > > I am currently attempting to roll my own multiple database > > support for django for a new project. I have attempted to > > search for examples of this but have not found very much. > > Does anyone have so

Re: Multiple Database

2008-11-26 Thread Tim Chase
> I am currently attempting to roll my own multiple database > support for django for a new project. I have attempted to > search for examples of this but have not found very much. > Does anyone have some examples on how I can accomplish this? There are multiple facets to "

Re: Multiple Database

2008-11-26 Thread Austin Gabel
Tim. I'm looking for a federation type of usage. I have several databases that I need to pull data from into one view. On Wed, Nov 26, 2008 at 11:46 AM, Tim Chase <[EMAIL PROTECTED]>wrote: > > > I am currently attempting to roll my own multiple database > > support fo

Re: Multiple Database

2008-11-26 Thread kron4eg
; On Nov 26, 8:30 am, "Austin Gabel" <[EMAIL PROTECTED]> wrote: > > > Hello, > > I am currently attempting to roll my own multiple database support for > > django for a new project.  I have attempted to search for examples of this > > but have no

Re: Multiple Database

2008-11-26 Thread Rock
http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/ On Nov 26, 8:30 am, "Austin Gabel" <[EMAIL PROTECTED]> wrote: > Hello, > I am currently attempting to roll my own multiple database support for > django for a new project.  I have attempted to se

Multiple Database

2008-11-26 Thread Austin Gabel
Hello, I am currently attempting to roll my own multiple database support for django for a new project. I have attempted to search for examples of this but have not found very much. Does anyone have some examples on how I can accomplish this

Re: Multiple Database Support

2008-03-02 Thread Ben Ford
Hi Lee, There's been a lot of historic discussion about multi-database support, and the upshot is that no it isn't supported well right now. There's a branch in SVN, but it's pretty much defunct. I believe the current thinking is to use SQLAlchemy if you need to access other databases (try looking

Multiple Database Support

2008-03-02 Thread Lee Connell
Hello, I seen some code in trak for multiple db support. Is this something that is usable now, is there some documentation on it? I have my app that mainly interacts with mysql but I need to pull some data from a mssql database for specific reasons, is this possible or should i just use ado-mss

Re: Multiple Database Support

2007-11-07 Thread Josh
I thought this *was* the last one that was asked :) On Nov 7, 4:01 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Nov 8, 2007 7:00 AM, Josh <[EMAIL PROTECTED]> wrote: > > > > > Hi! > > > Has there been any more progress toward getting themultipledatabase > > branch merged into trunk?

Re: Multiple Database Support

2007-11-07 Thread Russell Keith-Magee
On Nov 8, 2007 7:00 AM, Josh <[EMAIL PROTECTED]> wrote: > > Hi! > > Has there been any more progress toward getting the multiple database > branch merged into trunk? I, among many others, would really like to > be able to use the newer features of django and access multi

Re: Multiple Database Support

2007-11-07 Thread Josh
Hi! Has there been any more progress toward getting the multiple database branch merged into trunk? I, among many others, would really like to be able to use the newer features of django and access multiple databases from the same project... Thanks! Josh On Oct 17, 12:03 am, koenb <[EM

Re: multiple database support: oracle backend

2007-10-18 Thread Ben Ford
Hi There, I've had similar problems and it comes down to the line in query.py that looks in backend and sets QuerySet to _QuerySet or backend.QuesrySet if there is one... I've also written some code to mitigate against this, and I'd suggest anyone with an interest gets together on this so that we'r

Re: Multiple Database Support

2007-10-17 Thread markg
n trunk in the last year, so I think it is worth > trying those out instead of the old branch. Off course there are still > a lot of improvements to be made, but it is a start. > > Koen > > On 17 okt, 02:23, markg <[EMAIL PROTECTED]> wrote: > > > Hi, > >

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 1:29 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > > > In the latest patches for multi-db the QuerySet that is returned is no > > longer fixed, but varies with the model's manager. That should fix > > that problem for now. > > > K

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > In the latest patches for multi-db the QuerySet that is returned is no > longer fixed, but varies with the model's manager. That should fix > that problem for now. > > Koen I've installed the latest patches for multi-db agains revision 645

Re: multiple database support: oracle backend

2007-10-17 Thread koenb
In the latest patches for multi-db the QuerySet that is returned is no longer fixed, but varies with the model's manager. That should fix that problem for now. Koen On 17 okt, 09:03, Ian <[EMAIL PROTECTED]> wrote: > I don't know anything about the multi-db branch, but I imagine that > whatever Q

Re: Multiple Database Support

2007-10-17 Thread koenb
improvements to be made, but it is a start. Koen On 17 okt, 02:23, markg <[EMAIL PROTECTED]> wrote: > Hi, > > I need to support multiple database connections in our Django > application. > One option being considered is to use the multi-db branch > athttp://code.djan

Re: multiple database support: oracle backend

2007-10-17 Thread Ian
On Oct 16, 6:38 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > I am having trouble with Django revision 6110 patched with multi- > db-6110.patch. > > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/lib64/python2.4/site-packages/django/db/models/ > query.py", line

Re: multiple database support: oracle backend

2007-10-16 Thread koenb
Sorry Carlos, those patches are far from complete, and I don't use Oracle myself. For the moment the backends in the patches use the following to get the connection: connection = self.model._default_manager.db.connection Removing the import and putting in that line should do the trick.

multiple database support: oracle backend

2007-10-16 Thread Carlos Hanson
I am having trouble with Django revision 6110 patched with multi- db-6110.patch. Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib64/python2.4/site-packages/django/db/models/ query.py", line 108, in __repr__ return repr(self._get_data()) File "/usr/local/lib6

Multiple Database Support

2007-10-16 Thread markg
Hi, I need to support multiple database connections in our Django application. One option being considered is to use the multi-db branch at http://code.djangoproject.com/svn/django/branches/multiple-db-support which is already in alpha release. However by examining the code, it seems the

Re: multiple database, messy solution?

2006-09-19 Thread rp
Hi Gregor, Thanks for the note. I'm quite excited about trying it this out. I'll post the results (I'm still a meeting away from finalizing the server changes) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: multiple database, messy solution?

2006-09-19 Thread phxx
I guess you query one database through django.db.connection.cursor() method. Though you could query the athor one by using the MySQLdb Module ( http://sourceforge.net/projects/mysql-python ). It would be something like that: >>> import MySQLdb as db >>> c = db.connection(host='hostaddress', user

multiple database, messy solution?

2006-09-19 Thread rp
Hi, I work for a company that has a retail website with separate (1) staging and (2) live versions--separate mysql databases and web apps. We make changes on staging, Q/A them, and move them live. Changes are mostly mysql data changes. We're going to start using django for mysql changes to the

Re: Multiple Database & 1 Django

2006-02-13 Thread Siah
Russ, I see the priorities. I'm going to go ahead with a single db for now, hopefully by the time I launch it the feature is out and I would rework some of the necessary changes. Thanks, Sia

Re: Multiple Database & 1 Django

2006-02-12 Thread Russell Keith-Magee
parate cheap data from expensive data.As far as I am aware, multiple database support is unlikely to make v0.92. Whilst it is highly desirable, multiple database support is not an essential feature for most users. The current development focus is to get the magic-removal changes finalized and roll

Multiple Database & 1 Django

2006-02-12 Thread Siah
Hi, I am aware that there is a ticket for it: http://code.djangoproject.com/ticket/1142 I was wondering if the wrapper was small enough that can be squeezed by in version 9.2 or anytime soon as I am in desperate need to use it. Specifically, to separate cheap data from expensive data. Thanks fo

Re: Django and Multiple Database Support

2006-01-10 Thread Adrian Holovaty
On 1/10/06, Greg <[EMAIL PROTECTED]> wrote: > So I hacked > DatabaseWrapper.quote_name so that it doesn't quote periods, but is > that the "right" way to handle this or is it an ugly hack? It seems to > work very well, but it feels like it might be cleaner to add a > db_schema attribute or somethi

Re: Django and Multiple Database Support

2006-01-09 Thread Greg
I'm faced with the multiple-schema problem in MySQL, which AFAICT is a lot simpler than actually having multiple databases because at least you don't have to coordinate multiple connections. Actually, it basically already works. I wrote class Poll(meta.Model): class META: db_table = "

Re: Django and Multiple Database Support

2005-12-30 Thread Simon Willison
On 29 Dec 2005, at 11:35, Scott johnson wrote: Now I haven't hacked Django much myself yet (I've been working on the back end tools, db loader and overall schema). What support does Django have for multiple db stuff? I've started a ticket to track discussions on this issue: http://code.

Re: Django and Multiple Database Support

2005-12-29 Thread Kenneth Gonsalves
On Friday 30 Dec 2005 5:12 am, hugo wrote: > So, yes, I do think it would be very useful for Django to be able > to access multiple databases via it's ORM incidently, we need support for postgres schemas also - i have an Financial Accounting app where, in multi-company mode, the tables for each

Re: Django and Multiple Database Support

2005-12-29 Thread hugo
>I've always though that this particular -- and common -- use case >should be delegated to the DB level using one of the many excellent >replication/distribution tools for your database. For example, you >could easily do read distribution with pg_pool or sqlrelay, and it >would be transparent to

Re: Django and Multiple Database Support

2005-12-29 Thread Simon Willison
On 29 Dec 2005, at 20:29, Jacob Kaplan-Moss wrote: I've always though that this particular -- and common -- use case should be delegated to the DB level using one of the many excellent replication/distribution tools for your database. For example, you could easily do read distribution wi

Re: Django and Multiple Database Support

2005-12-29 Thread Jacob Kaplan-Moss
On Dec 29, 2005, at 9:10 AM, Adrian Holovaty wrote: ... or would you be doing more of a standard setup, in which you'd want database reads to be spread evenly across multiple DBs? Go ahead and explain the setup, and we can get started on designing the feature. I've always though that this part

Re: Django and Multiple Database Support

2005-12-29 Thread Adrian Holovaty
On 12/29/05, Scott johnson <[EMAIL PROTECTED]> wrote: > Now I haven't hacked Django much myself yet (I've been working on the back > end tools, db loader and overall schema). What support does Django have for > multiple db stuff? Hey Scott, Welcome! Django doesn't support multiple DBs out of t

Django and Multiple Database Support

2005-12-29 Thread Scott johnson
Hello, *Long time lurker; first time poster*.  My partner and I are standarizing on Django / Python for the front end of www.ookles.com, our new startup.  We're both php folk and I've convinced him that Django is better than ruby (based, honestly, on my respect for Simon and Adrian rather than a re