Re: databases

2023-12-07 Thread Swarup Selvaraj
create python script in terminal to update the data from old databases into new databases automaticaly -- 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 a

Re: databases

2023-12-01 Thread Dawda Borje Kujabi
Well you can depending on your databases, what kinda dtatbase do you have? On Friday, December 1, 2023 at 2:23:00 PM UTC Karim Dahman wrote: > Hi, > how can create python script in terminal to update the data from old > databases into new databases automaticaly > -- You received

Re: databases

2023-12-01 Thread Dawda Borje Kujabi
Well yes you can dependong on your databases. What kind of databases do you have? On Friday, December 1, 2023 at 2:43:20 PM UTC Madhusudhan Reddy wrote: > Bro please explain the scenario and the problem. > Nobody will not give proper answer until you proper details. > > On Fri, 1

Re: databases

2023-12-01 Thread Madhusudhan Reddy
Bro please explain the scenario and the problem. Nobody will not give proper answer until you proper details. On Fri, 1 Dec 2023 at 7:52 PM, Karim Dahman wrote: > Hi, > how can create python script in terminal to update the data from old > databases into new databases automaticaly >

databases

2023-12-01 Thread Karim Dahman
Hi, how can create python script in terminal to update the data from old databases into new databases automaticaly -- 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, sen

Re: Django dynamic multiple databases

2023-08-12 Thread ivan harold
you can check this one out https://docs.djangoproject.com/en/4.2/topics/db/multi-db/ On Saturday, August 12, 2023 at 9:44:08 AM UTC-5 pankaj palmate wrote: > I want to creating saas based application containing one super admin and > rest will be customers where each customer will have their ow

Django dynamic multiple databases

2023-08-12 Thread pankaj palmate
I want to creating saas based application containing one super admin and rest will be customers where each customer will have their own database .want multiple database with dynamic credentials based on request.I want the database to be identified from the subdomain provided.Is this possible using

Re: Running migrations with multiple databases

2023-07-11 Thread shahee...@gmail.com
on all bu the primary, so this is the default. Regards, David On Mon, Jul 10, 2023 at 10:26 PM Shaheed Haque wrote: Hi, I'm on Django 4.2 atop Postgres. In my project settings.py, I have a main/default database connection, and a second set up like this: == DATA

Re: Running migrations with multiple databases

2023-07-10 Thread David Nugent
Shaheed Haque wrote: > Hi, > > I'm on Django 4.2 atop Postgres. In my project settings.py, I have a > main/default database connection, and a second set up like this: > > ====== > DATABASES = { > 'default': { > ... > 'NAME

Running migrations with multiple databases

2023-07-10 Thread Shaheed Haque
Hi, I'm on Django 4.2 atop Postgres. In my project settings.py, I have a main/default database connection, and a second set up like this: == DATABASES = { 'default': { ... 'NAME': 'foo',

Re: Annotate and Subquery with 2 tables in 2 different databases

2023-04-20 Thread Jason
this won't work, you're doing things across two entire dbs. So you'l have to implement all the logic in python to execute. On Thursday, April 20, 2023 at 9:58:20 AM UTC-4 Mạnh ĐỖ wrote: > I want to use annotate and subquery to join tables. > Table1 in database1 and table2 in database2. But it's

Annotate and Subquery with 2 tables in 2 different databases

2023-04-20 Thread Mạnh ĐỖ
I want to use annotate and subquery to join tables. Table1 in database1 and table2 in database2. But it's not work. I got the error: QuerySet.annotate() received non-expression(s): database1. the code here: from django.db.models import Subquery, OuterRef, Count from app1.models import Table1 fr

regarding databases and models.py relation

2023-03-31 Thread Chess Lectures
when we create a table in database , we create through models.py . we migrate and apply the changes . Issue arises as after creation of table -> i tried to add a coloum manually to the db , and wrote the col name in models.py and in views.py as it was a time field added, so data was getting ins

Re: django multi databases and multi sessions

2023-03-21 Thread Ujjwal Joshi
-tenancy online. On Mon, 20 Mar 2023 at 20:53, WM wrote: > Hi, > > I would like to have your help. > > Using Django multiple databases in a project, can I create multiple > sessions in the project? If so, I would like to know how to. For example, > three databases wit

Re: django multi databases and multi sessions

2023-03-20 Thread Dan Wood
I’m working on a big multi tenant app feel free to email for information, I use a different schema for each tenant -- 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 t

Re: django multi databases and multi sessions

2023-03-20 Thread Sebastian Jung
I think you mean multi tenancy... There are packages for that. Google after django multi tenant.. WM schrieb am Mo., 20. März 2023, 16:08: > Hi, > > I would like to have your help. > > Using Django multiple databases in a project, can I create multiple > sessions in the proje

django multi databases and multi sessions

2023-03-20 Thread WM
Hi, I would like to have your help. Using Django multiple databases in a project, can I create multiple sessions in the project? If so, I would like to know how to. For example, three databases with two different login functions; The steps are followed: In a webpage, login as a homepage

Re: how can i create databases, routers and install apps in runtime?

2022-10-31 Thread Paul Kudla
just add them using a text editor (vi etc) when you need to access them an import settings (already shoud be done) will present them python 101 stuff more then django fyi Happy Monday !!! Thanks - paul Paul Kudla Scom.ca Internet Services 004-1009 Byron Street Sou

Re: how can i create databases, routers and install apps in runtime?

2022-10-31 Thread 'Kasper Laudrup' via Django users
On 31/10/2022 13.28, emilton mendoza wrote: Could someone tell me how I can add new values ​​to the variables of settings.py? The same way you would add new values to any other Python variable. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Goog

how can i create databases, routers and install apps in runtime?

2022-10-31 Thread emilton mendoza
Could someone tell me how I can add new values ​​to the variables of settings.py? Thanks -- 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.

Re: Using Multiple databases

2022-04-15 Thread Ryan Nowakowski
On Wed, Apr 06, 2022 at 08:59:09AM -0700, Vasanth Mohan wrote: > I'm building a PoC for a multi-tenant app where I'm trying to use the same > schema across multiple databases with Django instance. I've got a couple of > questions and I'd be happy to have some in

Using Multiple databases

2022-04-06 Thread Vasanth Mohan
Hello, I'm building a PoC for a multi-tenant app where I'm trying to use the same schema across multiple databases with Django instance. I've got a couple of questions and I'd be happy to have some input 1. Is there a way to define the *using()* function to use wi

migrate exception if multiple databases migrated in a specific order

2022-02-02 Thread Robert Leach
what I have in settings.py: ``` DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", "NAME": env("DATABASE_NAME"), "USER": env("DATABASE_USER"), "PASSWORD": env("DATABA

call the model of the secondary database in djnago using Multiple Databases

2020-06-30 Thread Pradyum Gupta
https://stackoverflow.com/q/62658396/7999665 -- 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 this discussion o

Re: Creating test databases in parallel

2020-04-02 Thread Ram Rachum
When you say "shrinking your test databases", what do you mean exactly? I'm a bit of a newbie on that part of Django. On Wed, Apr 1, 2020 at 8:13 PM Thomas Lockhart wrote: > If you are trying to optimize the test flow, then you may want to spend > some time shrinking you

Re: Creating test databases in parallel

2020-04-01 Thread Thomas Lockhart
If you are trying to optimize the test flow, then you may want to spend some time shrinking your test databases to a more manageable size. Or have two sets; abbreviated and full, with the larger one to exercise your (unknown) edge cases. hth - Tom > On Apr 1, 2020, at 2:25 AM, cool-RR wr

Re: Creating test databases in parallel

2020-04-01 Thread Ram Rachum
urrency/ > > On Wed, 1 Apr 2020, 11:25 am cool-RR, wrote: > >> Hi guys, >> >> I'm trying to optimize our Django testing workflow. >> >> We have 7 different databases, and Django spends a lot of time on these >> lines: >> >> >>

Re: Creating test databases in parallel

2020-04-01 Thread Motaz Hejaze
Long article somehow , but very informative ... https://realpython.com/python-concurrency/ On Wed, 1 Apr 2020, 11:25 am cool-RR, wrote: > Hi guys, > > I'm trying to optimize our Django testing workflow. > > We have 7 different databases, and Django spends a lot of t

Creating test databases in parallel

2020-04-01 Thread cool-RR
Hi guys, I'm trying to optimize our Django testing workflow. We have 7 different databases, and Django spends a lot of time on these lines: Creating test database for alias 'main_database'... Creating test database for alias 'foo_database'... Creating test databas

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
for example: https://docs.djangoproject.com/en/3.0/ref/models/fields/#foreignkey El vie., 17 de ene. de 2020 a la(s) 11:43, Jonathan Villavicencio ( codejonvi...@gmail.com) escribió: > In your model define a class and in out make the relationship with other > class that reference the other table

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
In your model define a class and in out make the relationship with other class that reference the other table in the database El vie., 17 de ene. de 2020 a la(s) 11:14, Stephen (stephen.u...@gmail.com) escribió: > sqlite3 > > On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Villavicencio wrote

Re: Can't connect databases together

2020-01-17 Thread Stephen
sqlite3 On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Villavicencio wrote: > > Hello Stephen, > > What is the database you are using? > > El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (steph...@gmail.com > ) escribió: > >> How can I connect 2 database tables together please?. I am tryi

Re: Can't connect databases together

2020-01-17 Thread Jonathan Villavicencio
Hello Stephen, What is the database you are using? El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (stephen.u...@gmail.com) escribió: > How can I connect 2 database tables together please?. I am trying to > display some objects in a table by selecting an object that is in another > table. How

Can't connect databases together

2020-01-17 Thread Stephen
How can I connect 2 database tables together please?. I am trying to display some objects in a table by selecting an object that is in another table. How do I connect them please? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: django-import-export problem with relation of two databases

2019-09-11 Thread Most. Runa
on't > get the concept about how to write it.. > > [image: 擷取.PNG] > > > ANi於 2019年9月10日星期二 UTC+8上午11時54分28秒寫道: >> >> Hi, >> >> I have my asset table in local db which need to reference to the employee >> view from another database. >&g

Re: django-import-export problem with relation of two databases

2019-09-10 Thread ANi
y asset table in local db which need to reference to the employee > view from another database. > But I realized that Django might not allow relations across databases, > right? > > so does it means that I can only store the employee key as string in the > asset table? > or o

Different databases depending on request

2019-08-24 Thread Fredrik Gustafsson
I've multiple django sites: customer1.example.com, customer2.example.com, customer3.example.com, etc. I want to use one django instance for all customers. How can I make django to dynamic change it's database depending on the hostname of the webrequest? -- Fredrik Gustafsson CTO fredrik.gustafs..

Re: Can we create a Rest Api in Django which can able to communicate with multiple databases(Relational, Non relational) dynamically. If yes please recommend me a way to do that

2019-06-23 Thread Andrew C.
anilkumar sangu wrote: > Hello, > > I am working on Django > > I have a scenario like > I want to connect multiple databases. based on user selection. if user > selects MySql from front end my Api could able to connect MySql. if user > select postgreSql my api could able to con

Re: Can we create a Rest Api in Django which can able to communicate with multiple databases(Relational, Non relational) dynamically. If yes please recommend me a way to do that

2019-06-21 Thread Chetan Ganji
egards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Fri, Jun 21, 2019 at 4:55 PM anilkumar sangu wrote: > Hello, > > I am working on Django > > I have a scenario like > I want to connect multiple databases. based on user selection. if user >

Can we create a Rest Api in Django which can able to communicate with multiple databases(Relational, Non relational) dynamically. If yes please recommend me a way to do that

2019-06-21 Thread anilkumar sangu
Hello, I am working on Django I have a scenario like I want to connect multiple databases. based on user selection. if user selects MySql from front end my Api could able to connect MySql. if user select postgreSql my api could able to connect to postgreSql based on user selection

Re: Working with Databases

2019-05-26 Thread Bob Gailer
Miscellaneous thoughts follow in no particular order. I always like to start with some kind of entity relationship (ER) diagram. This makes it easy to visualize the overall structure of things. Read the description in the Django Docs of JSONfields. They don't really do what you want. I think wha

Working with Databases

2019-05-26 Thread Derek Dong
I'm relatively new to Django and web development in general but have decent coding experience. My questions are primarily related to how to work with models to create a ranking system. Some background: I'm an officer for an academic school team and am trying to implement a ranking system that de

Multiple databases in django with admin

2019-02-14 Thread Ramesh Mahajan
I am working on a project for multiple tenants. So i want to multiple databases. But i will be using django built-in auth app. I want to know what changes I should do in admin panel so that whenever admin is creating user it goes and sits in the respective databases. Thank in advance. -- You

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Roshan Shah
rd tables for its use; >> > When this client logs in the system will load information from the >> created >> > bank. >> > To do this it should read in the database the name of the client's >> database >> > and load it into the DATABASES varia

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Sanderson Carmona
> > > Example: You purchased a service and when registering the system create > a > > database with standard tables for its use; > > When this client logs in the system will load information from the > created > > bank. > > To do this it should read in t

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Sanderson Carmona
database with standard tables for its use; >> When this client logs in the system will load information from the >> created bank. >> To do this it should read in the database the name of the client's >> database and load it into the DATABASES variable, that is, if

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Michal Petrucha
gs in the system will load information from the created > bank. > To do this it should read in the database the name of the client's database > and load it into the DATABASES variable, that is, if not see another way. > > If anyone can help me thank you very much, I alre

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Mario R. Osorio
I'm not an expert, but this article seems like a good start: How to Configure Multiple Databases in Django the Simple Way https://strongarm.io/blog/multiple-databases-in-django/ On Monday, January 7, 2019 at 1:49:15 PM UTC-5, Sanderson Carmona wrote: > > Good afternoon, > > I&#

Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-07 Thread zekri sidi mohamed hicham
ervice and when registering the system create a > database with standard tables for its use; > When this client logs in the system will load information from the created > bank. > To do this it should read in the database the name of the client's > database and load it into the D

Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-07 Thread Sanderson Carmona
ample: You purchased a service and when registering the system create a database with standard tables for its use; When this client logs in the system will load information from the created bank. To do this it should read in the database the name of the client's database and load it into the DAT

Re: Databases configuration

2018-12-07 Thread Daniel M
ather than using the default sqlite database, I changed it to >>> mysql with the following settings on MacOS High Sierra v13.10.6: >>> >>> DATABASES = { >>> 'default': { >>> 'ENGINE': 'django.db.backends.mysql', >

Re: Databases configuration

2018-12-07 Thread Chuck R
yone, >> >> I am new to Django. I have started a new project running on my localhost. >> Rather than using the default sqlite database, I changed it to mysql with >> the following settings on MacOS High Sierra v13.10.6: >> >> DATABASES = { >> 'default

Databases configuration

2018-12-07 Thread Chuck R
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mysql', 'USER': 'root', 'PASSWORD': 'root', 'HOST': '', &

Re: Databases configuration

2018-12-07 Thread Kasper Laudrup
Hi Cool Smith, On 12/7/18 10:11 AM, Cool Smith wrote: I tried starting MYSQL server on System Preferences. However, it seems the server will shutdown automatically a few seconds later. You would probably have a better chance of getting useful responses if you posted your question in a forum

Re: Databases configuration

2018-12-07 Thread Cool Smith
ather than using the default sqlite database, I changed it to >>> mysql with the following settings on MacOS High Sierra v13.10.6: >>> >>> DATABASES = { >>> 'default': { >>> 'ENGINE': 'django.db.back

Re: Databases configuration

2018-12-07 Thread Cool Smith
new project running on my localhost. >> Rather than using the default sqlite database, I changed it to mysql with >> the following settings on MacOS High Sierra v13.10.6: >> >> DATABASES = { >> 'default': { >> 'ENGINE': 'djang

Re: Databases configuration

2018-12-06 Thread Arnaldo Díaz Molina
ne, >> >> I am new to Django. I have started a new project running on my localhost. >> >> Rather than using the default sqlite database, I changed it to mysql with >> >> the following settings on MacOS High Sierra v13.10.6: >> >> DATABASES =

Re: Databases configuration

2018-12-06 Thread C. Kirby
> the following settings on MacOS High Sierra v13.10.6: > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'mysql', > 'USER': 'root', > 'P

Databases configuration

2018-12-06 Thread Cool Smith
Hi everyone, I am new to Django. I have started a new project running on my localhost. Rather than using the default sqlite database, I changed it to mysql with the following settings on MacOS High Sierra v13.10.6: DATABASES = { 'default': { 'ENGINE': '

Re: Running a single version of my Django app but with two databases: one for dev and one for prod

2018-10-03 Thread Michal Petrucha
ngs that are different are the > two databases. I want the code to be the same on both. I figured I could > just have two settings files and two wsgi.py files so it's set up like this: > > wsgi_prod.py: > > *import os* > > *from django.core.wsgi import get_wsgi_appli

Re: Running a single version of my Django app but with two databases: one for dev and one for prod

2018-10-02 Thread Jason
to be honest, this seems like much more effort than its worth. -- 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 post

Re: Running a single version of my Django app but with two databases: one for dev and one for prod

2018-10-02 Thread heriberto ochoa
'm using > wsgi, even in development. I would like to create a production and a > development version where really the only things that are different are the > two databases. I want the code to be the same on both. I figured I could > just have two settings files and two

Re: Single Django App using Multiple Databases

2018-10-02 Thread heriberto ochoa
https://django-tenant-schemas.readthedocs.io/en/latest/ El martes, 2 de octubre de 2018, 6:53:16 (UTC-6), Glen D souza escribió: > > Hi, > > I am working on a project where i am using a single django app which is > backed by different databases. > > Let me explain the us

Single Django App using Multiple Databases

2018-10-02 Thread Glen D souza
Hi, I am working on a project where i am using a single django app which is backed by different databases. Let me explain the use case clearly, I have a app say app1, and app1 data is located in two different databases say db1 and db2 data present in the db1 and db2 are different, lets say db1

Running a single version of my Django app but with two databases: one for dev and one for prod

2018-09-24 Thread jim_rain
Hi, I'm developing a Django app, it's hosted on an EC2 instance so I'm using wsgi, even in development. I would like to create a production and a development version where really the only things that are different are the two databases. I want the code to be the same on bo

Using introspectdb with MySQL sakila and world databases

2018-07-11 Thread Ram Munjuluri
4 in order to be unambiguous.", None)* I have tried a lot of message boards for a possible solution, but have hit the wall. Has anyone tried these databases from MySQL to generate the models? I am using 1. MySQL 8.0 2. Python 3.6.5 3. Django 2.0.7 Any help or pointers are really appreci

Regarding Multiple Databases

2018-06-19 Thread RASHMIT PANKHANIA
hi i m here first time, my doubt is regarding using multiple(two) databases and i want to create particular table in only one database but after migrating it happens on both.you can follow the code on https://dpaste.de/arP9 -- You received this message because you are subscribed to the Google

Regarding Multiple Databases

2018-06-19 Thread RASHMIT PANKHANIA
Hello: I am Rashmit Pankhania and my doubt is regarding using multiple(two) databases and i want to create particular table in only one database but after migrating it happens on both.Also after migrating it show only django-migration table in second database.you can follow the code on https

Tools in the django ecosystem for managing contact databases

2018-05-02 Thread quentin . agren
Hi, This is a question regarding tools that might be available in the django ecosystem meeting the rather simple requirements briefly summarized below. I am looking for a web-based solution that, at its core, would be able to handle a contact database. With the following constraint: think of t

Re: How do I transmit any changes to databases(i.e. creates and updates pertaining to a particular user) using Django Channels?

2018-03-08 Thread Andrew Godwin
Hi Alexis, You'll need to do some work yourself - hook into database changes (either via signals or overriding the save method) to send change notifications to a different Group for each user (maybe use group names like "user-123213", where the number is their ID). Then, when someone connects via

How do I transmit any changes to databases(i.e. creates and updates pertaining to a particular user) using Django Channels?

2018-03-08 Thread Alexis Candelaria
My goal is to send send any database updates to the relevant users. I was thinking of utilizing the views of the post and patch requests to do this but am not sure if there is better or more documented way. -- You received this message because you are subscribed to the Google Groups "Django u

Is it possible have Django registration and content databases on 2 different servers?

2018-01-12 Thread NoviceSortOf
Is it possible have Django registration and content databases on 2 different servers? I would like to decouple the registration from the content management system, and am wondering if its possible to place them on 2 different servers. What caveats, guidelines and methods are available for

Re: Non relational databases (MongoDB) with Django

2017-09-12 Thread Nes Dis
Hello If you are looking for a way to connect MongoDB to Django, You should take a look at djongo a driver for allowing Django to use MongoDB as the database backend. You dont need a non-rel version of Django to go with it either!!! On Wednesday, 17 August 20

database names in queries on multiple databases

2017-07-10 Thread Florian Wegscheider
TLTR: Django does not include database names in SQL queries, can I somehow force it to do this, or is there a workaround? The long version: I have two unmanaged legacy MySQL databases (Note: I have no influence on the DB layout) for which I'm creating a readonly API using DRF on Django

Multiple Databases --- Migrations

2017-02-27 Thread Luvpreet Singh
I am using 2 postgres databases in my django app. 'newpostgre': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'new_postgre2', 'USER': 'tester',

Re: Multiple Databases

2017-02-27 Thread ludovic coues
is going to use the database named default. >> Checkout the doc on using mutiple DBs >> https://docs.djangoproject.com/en/1.10/topics/db/multi-db/ >> >> Dylan >> >> >> On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh >> wrote: >>> >>>

Re: Multiple Databases

2017-02-27 Thread Luvpreet Singh
/topics/db/multi-db/ > > Dylan > > > On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh > wrote: > >> Hi everyone, >> >> I am using 2 databases in my django app. One is default sqlite and second >> is postgre. >> >> Now, I make a simple mode

Re: Multiple Databases

2017-02-26 Thread Dylan Reinhold
It is going to use the database named default. Checkout the doc on using mutiple DBs https://docs.djangoproject.com/en/1.10/topics/db/multi-db/ Dylan On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh wrote: > Hi everyone, > > I am using 2 databases in my django app. One is default s

Multiple Databases

2017-02-26 Thread Luvpreet Singh
Hi everyone, I am using 2 databases in my django app. One is default sqlite and second is postgre. Now, I make a simple model named Check1 in my app, having only title attribute. class Check1(models.Model): title = models.CharField(max_length=100) Now, in my shell, >>

Re: multiple databases - two questions

2017-01-03 Thread Fred Stluka
sed UUIDs instead of incrementing integer ids. The DB router is designed for naturally segmented schemas being on different databases. My attempt was against the grain. Cheers Mike See:

Re: multiple databases - two questions

2017-01-02 Thread Mike Dewhirst
tead of incrementing integer ids. The DB router is designed for naturally segmented schemas being on different databases. My attempt was against the grain. Cheers Mike See: - https://docs.djangoproject.com/en/dev/topics/db/multi-db/#topics-db-multi

Re: multiple databases - two questions

2017-01-02 Thread Fred Stluka
The docs say ... https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#using-managers-with-multiple-databases ... but I don't quite understand. There are no custom managers involved; only the out-of-the-box MyModel.objects. Q1.

Re: Migrations and multiple databases

2016-11-25 Thread odd hogstad
or >> the migrations to work? >> >> torsdag 24. november 2016 12.22.14 UTC+1 skrev pradam.programming >> følgende: >>> >>> hi Hogstad, >>> Before doing app migrate please python manage.py migrate auth ==>I hope >>> this will solve the issue >

Re: Migrations and multiple databases

2016-11-24 Thread pradam programming
;> Before doing app migrate please python manage.py migrate auth ==>I hope >> this will solve the issue >> >> On Thu, Nov 24, 2016 at 3:54 PM, odd hogstad wrote: >> >>> I have two databases in my project, db1, which changes quite frequently, >>>

Re: Migrations and multiple databases

2016-11-24 Thread odd hogstad
he issue > > On Thu, Nov 24, 2016 at 3:54 PM, odd hogstad > wrote: > >> I have two databases in my project, db1, which changes quite frequently, >> and db2, which seldom changes. The app was original written in django 1.3, >> but we've upgraded since then, an

Re: Migrations and multiple databases

2016-11-24 Thread pradam programming
hi Hogstad, Before doing app migrate please python manage.py migrate auth ==>I hope this will solve the issue On Thu, Nov 24, 2016 at 3:54 PM, odd hogstad wrote: > I have two databases in my project, db1, which changes quite frequently, > and db2, which seldom changes. The app was

Migrations and multiple databases

2016-11-24 Thread odd hogstad
I have two databases in my project, db1, which changes quite frequently, and db2, which seldom changes. The app was original written in django 1.3, but we've upgraded since then, and now uses 1.8. Now I need to make a change on db2 for the first time since the upgrade from 1.3. I ma

Re: Non relational databases (MongoDB) with Django

2016-11-09 Thread SiamDjango
I was wondering if you end up using MongoDB with Django, did you use non relational version of Django? how was your experience? On Wednesday, August 17, 2016 at 1:28:31 AM UTC-7, Deep Shah wrote: > > I want to use MongoDB with Django. Which are the advisable, latest and > stable engines? > I fo

multiple databases - two questions

2016-11-03 Thread Mike Dewhirst
d from 'default' and write to 'production'. (I need to check we are on the staging server). The docs say ... https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#using-managers-with-multiple-databases ... but I don't quite understand. There are no custo

multiple databases - two questions

2016-11-03 Thread Mike Dewhirst
e to 'production'. (I need to check we are on the staging server). The docs say ... https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#using-managers-with-multiple-databases ... but I don't quite understand. There are no custom managers involved; only the out-of-the

Re: Migrations with multiple databases

2016-10-27 Thread marcin . j . nowak
On Tuesday, October 25, 2016 at 5:05:46 PM UTC+2, andrea crotti wrote: > > We have a couple of databases with a tiny number of tables, but > django-migrations has still go through all the migrations anyway. > So even if the SQL itself is nothing it still takes a massive amount of

Re: Migrations with multiple databases

2016-10-27 Thread andrea crotti
: > > Hi Andrea, > > If you have models that are entirely unrelated in different databases > you could use different values for INSTALLED_APPS to limit the apps > Django sees or by settings the values in the MIGRATION_MODULES dict to > None to tell Django that tho

Re: Migrations with multiple databases

2016-10-25 Thread Markus Holtermann
Hi Andrea, If you have models that are entirely unrelated in different databases you could use different values for INSTALLED_APPS to limit the apps Django sees or by settings the values in the MIGRATION_MODULES dict to None to tell Django that those apps don't have migrations. Cheers, /M

Migrations with multiple databases

2016-10-25 Thread andrea crotti
We have a couple of databases with a tiny number of tables, but django-migrations has still go through all the migrations anyway. So even if the SQL itself is nothing it still takes a massive amount of time and memory for the usual known issues with migrations on big projects. I guess it works

Re: transferring data between Postgres databases

2016-10-24 Thread Mike Dewhirst
On 25/10/2016 7:09 AM, Erik Cederstrand wrote: Den 24. okt. 2016 kl. 06.04 skrev Mike Dewhirst: I have a user who has done a lot of work (instead of playing) in the staging server and now wants to get that work into the production database. I'm about to research selective dump and load capabil

Re: transferring data between Postgres databases

2016-10-24 Thread Erik Cederstrand
> Den 24. okt. 2016 kl. 06.04 skrev Mike Dewhirst : > > I have a user who has done a lot of work (instead of playing) in the staging > server and now wants to get that work into the production database. > > I'm about to research selective dump and load capabilities of Postgres but in > the mea

Re: transferring data between Postgres databases

2016-10-24 Thread Vineet Kothari
You will have to dump the back up file for that you can either use GUI based tool as other friends has suggested or you can use command line .There may be more ways please read two scoops of Django book On Oct 24, 2016 9:39 AM, "'Aaron C. de Bruyn' via Django users" < django-users@googlegroups.com

Re: transferring data between Postgres databases

2016-10-23 Thread Mike Dewhirst
Django app. Aaron, thanks for that. Do you know if it will handle a bunch of related records in many tables to be copied as a related "set" to the other database. Both databases have identical structures. M [0] - http://www.sql-workbench.net/ -A On Sun, Oct 23, 2016 at 9:04 PM, M

Re: transferring data between Postgres databases

2016-10-23 Thread 'Aaron C. de Bruyn' via Django users
If you're talking about migrating data using tools outside of django, I've used SQLWorkbench[0] in the past. I currently use it to selectively sync a handful of tables out of a ~900 table database *in* to my Django app. [0] - http://www.sql-workbench.net/ -A On Sun, Oct 23, 2016 at 9:04 PM, Mike

transferring data between Postgres databases

2016-10-23 Thread Mike Dewhirst
I have a user who has done a lot of work (instead of playing) in the staging server and now wants to get that work into the production database. I'm about to research selective dump and load capabilities of Postgres but in the meantime can anyone suggest any shortcuts? Thanks Mike -- You re

  1   2   3   4   5   6   >