Re: Why does sqlmigrate need a connection to an existing database?

2021-12-24 Thread Shmuel Treiger
kes sense, because you can have N unapplied migrations between >>> the db and your migrations history package. >>> >>> >>> >>> On Tuesday, December 7, 2021 at 7:46:42 PM UTC-5 >>> shmuel@partnerize.com wrote: >>> >>>>

Re: Why does sqlmigrate need a connection to an existing database?

2021-12-11 Thread Jason
db and your migrations history package. >> >> >> >> On Tuesday, December 7, 2021 at 7:46:42 PM UTC-5 >> shmuel@partnerize.com wrote: >> >>> Wondering why sqlmigrate needs a connection to an existing database. >>> >>> I understand th

Re: Why does sqlmigrate need a connection to an existing database?

2021-12-10 Thread Shmuel Treiger
tory package. > > > > On Tuesday, December 7, 2021 at 7:46:42 PM UTC-5 shmuel@partnerize.com > wrote: > >> Wondering why sqlmigrate needs a connection to an existing database. >> >> I understand that for certain commands, it needs the database to generate

Re: Why does sqlmigrate need a connection to an existing database?

2021-12-09 Thread Jason
; Wondering why sqlmigrate needs a connection to an existing database. > > I understand that for certain commands, it needs the database to generate > the migration. But for most (basic) commands, no connection is really > needed. > > For example, I created a test project > &l

Why does sqlmigrate need a connection to an existing database?

2021-12-07 Thread Shmuel Treiger
Wondering why sqlmigrate needs a connection to an existing database. I understand that for certain commands, it needs the database to generate the migration. But for most (basic) commands, no connection is really needed. For example, I created a test project <https://github.com/ShmuelTrei

Re: Makemigrations/migrate in existing database

2021-06-08 Thread Gabriel Araya Garcia
n my app or is just > migrate enough?* And also what are the points to remember while using > inspectdb on an existing database. > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. >

Re: Makemigrations/migrate in existing database

2021-06-08 Thread Omkar D
ase. I just want it for data >> retrieval. >> >> *Should I definitely run migrate/makemigrations?* >> >> *After inspectdb should i apply makemigrations on my app or is just >> migrate enough?* And also what are the points to remember while using >&g

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread sourav panja
Have you created a new model field ? Then put on that null= "True" Example :: Name = Model.CharField(max_legth,* null= "True"*) On Fri, Jun 4, 2021 at 7:59 PM OSA-33 SyCS Atik Rangnekar < atikrangneka...@gmail.com> wrote: > It think the problem is there is null values/bytes > > On Fri, 4 Jun, 2

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread OSA-33 SyCS Atik Rangnekar
It think the problem is there is null values/bytes On Fri, 4 Jun, 2021, 6:28 pm Ankita Sharma, wrote: > Hello All > Hope all are doing great. > The issue is as follows: > I have already existing 2 MSSql databases from which I have migrated > required tables into models.py > Now I am not able to

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread Mahendra
Check the error in Google Mahendra Yadav On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote: > Hello All > Hope all are doing great. > The issue is as follows: > I have already existing 2 MSSql databases from which I have migrated > required tables into models.py > Now I am not able to do makemigra

Re: Makemigrations/migrate in existing database

2021-06-04 Thread Mahendra
h?* And also what are the points to remember while using > inspectdb on an existing database. > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop re

Makemigrations and migrate for already existing database

2021-06-04 Thread Ankita Sharma
Hello All Hope all are doing great. The issue is as follows: I have already existing 2 MSSql databases from which I have migrated required tables into models.py Now I am not able to do makemigrations on one of them. Below is the error: from records.models.transactions_east import AdgSrtransaction

Makemigrations/migrate in existing database

2021-06-04 Thread Ankita Sharma
Should I definitely run migrate/makemigrations?* *After inspectdb should i apply makemigrations on my app or is just migrate enough?* And also what are the points to remember while using inspectdb on an existing database. Thanks in advance -- You received this message because you are subscribed to th

Re: Conversion and import of a pre-existing database

2021-01-07 Thread gabriela...@gmail.com
Perhaps there is a utility program that can do that. Something like converter. Have you look in web foros ? El jueves, 7 de enero de 2021 a las 11:58:36 UTC-3, pe...@oneilinteractive.com escribió: > Jérémy, > > It all depends on the Database which route to take. Is it one table, > multiple ta

Re: Conversion and import of a pre-existing database

2021-01-07 Thread 'Peter van der Does' via Django users
Jérémy, It all depends on the Database which route to take. Is it one table, multiple tab;es, what are the relationship? My plan of attack would be: 1. Create all models in Django as you want them to be. Use the Django standards to name your new fields [1]. 2. Let Django handle the field n

Conversion and import of a pre-existing database

2021-01-07 Thread Jérémy Garniaux
Hi, I'm working on my first Django project. Already read the tutorial but following along it to be sure not to miss anything. I've been asked to rebuild a pre-existing website. It's basic in functionality: various users create complete descriptions of heritage items in the admin area, and th

Re: Existing database for users to use django user auths

2019-06-05 Thread Vijay Khemlani
Yes, you can write your own Authentication Backend with your custom authentication logic https://docs.djangoproject.com/en/2.2/topics/auth/customizing/ On Wed, Jun 5, 2019 at 8:53 AM michael ababao wrote: > I am new to django and i would like to know if it is possible to use the > django user a

Existing database for users to use django user auths

2019-06-05 Thread michael ababao
I am new to django and i would like to know if it is possible to use the django user authentication using a different database for users? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

Re: existing database connectivity

2016-12-29 Thread ludovic coues
Have you done a tutorial on django ? Part 4 of the official tutorial deal with altering an object from your database according to a form. https://docs.djangoproject.com/en/1.10/intro/tutorial04/ The django girls tutorial have a section on how to create an object from a form and save it in your da

Re: existing database connectivity

2016-12-26 Thread Rasika
I know how to save a record from shell command in command prompt. I want to get values from html form and save it to database table which I have created.Please help on this I am not getting proper answer or code on net. On Monday, December 26, 2016 at 9:54:25 AM UTC+5:30, Rasika wrote: > > yes

Re: existing database connectivity

2016-12-26 Thread hemanth pedhinti
How do i retrieve internet browsing history using python django?? can any one help me?? regards, hemanth.p. On Mon, Dec 26, 2016 at 9:54 AM, Rasika wrote: > yes it worked well. > Thank you so much > > > On Saturday, December 24, 2016 at 9:46:04 AM UTC+5:30, Collin Anderson > wrote: >> >> Hi, >

Re: existing database connectivity

2016-12-25 Thread Rasika
yes it worked well. Thank you so much On Saturday, December 24, 2016 at 9:46:04 AM UTC+5:30, Collin Anderson wrote: > > Hi, > > You could try re-installing psycopg2 to see if that fixes it. > > Collin > > On Thursday, December 22, 2016 at 1:55:53 AM UTC-6, Rasika wrote: >> >> >> I am followed the

Re: existing database connectivity

2016-12-23 Thread Collin Anderson
Hi, You could try re-installing psycopg2 to see if that fixes it. Collin On Thursday, December 22, 2016 at 1:55:53 AM UTC-6, Rasika wrote: > > > I am followed the steps as I am getting in tutorials > when I run the command : > python manage.py migrate > this is giving me following error > >

Re: existing database connectivity

2016-12-21 Thread Rasika
I am followed the steps as I am getting in tutorials when I run the command : python manage.py migrate this is giving me following error from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID ImportError: DLL load failed: The specified module could not be found. During handlin

Re: existing database connectivity

2016-12-19 Thread Derek
Suggest you look at Django authentication: https://docs.djangoproject.com/en/1.10/topics/auth/customizing/ "Authentication backends provide an extensible system for when a username and password stored with the user model need to be authenticated against a different service than Django’s default.

existing database connectivity

2016-12-19 Thread Django_user
Hello all, I am using Django framework for our website.I am stuck on the database connectivity.I want to change the default database sqlite with our for test purpose but in that also I am getting problems. My aim is I have to use our compnies database so that already registered users have

Re: Existing database - new project

2015-03-13 Thread Robert Daniels
thanks for everyone's input. I'll run parallel implementations and see which one works best for the long haul. -- 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

Re: Existing database - new project

2015-03-10 Thread Collin Anderson
iday, 6 March 2015 23:39:33 UTC+2, Robert Daniels wrote: >> >> I understand it is possible to use an existing database on a new Django >> project. >> >> As I see it, I have 2 choices. >> >> 1 - Use the existing database and deal with it in that fashion. &

Re: Existing database - new project

2015-03-07 Thread Derek
On Friday, 6 March 2015 23:39:33 UTC+2, Robert Daniels wrote: > > I understand it is possible to use an existing database on a new Django > project. > > As I see it, I have 2 choices. > > 1 - Use the existing database and deal with it in that fashion. > > or > > 2

Re: Existing database - new project

2015-03-06 Thread john
I'm not sure this is of help but I took was the easy way out. In my models.py for each of my models.Model I added Class Meta: managed = False That worked for me - the existing database tables were not touched. Johnf On 03/06/2015 01:18 PM, Robert Daniels wrote: I understand

Existing database - new project

2015-03-06 Thread Robert Daniels
I understand it is possible to use an existing database on a new Django project. As I see it, I have 2 choices. 1 - Use the existing database and deal with it in that fashion. or 2 - Create a new project to store the same type of data as if there were no existing database, Then write a

Re: Copy all the data from an existing database when create the testing database.

2013-10-07 Thread Tianyi Wang
g wrote: >> >> Yes, it'd be nice to have all the data from the existing database. >> I am aware the loading fixtures way, but I will need to do that every time >> I know the existing database has changed a lot. >> So just copy the data when creating the test data

Re: Copy all the data from an existing database when create the testing database.

2013-10-05 Thread Kelvin Wong
Consider using model factories (you can roll your own) or FactoryBoy https://factoryboy.readthedocs.org/en/latest/ K On Friday, October 4, 2013 9:17:51 AM UTC-7, Tianyi Wang wrote: > > Yes, it'd be nice to have all the data from the existing database. > I am aware the loading fix

Re: Copy all the data from an existing database when create the testing database.

2013-10-04 Thread Tianyi Wang
Yes, it'd be nice to have all the data from the existing database. I am aware the loading fixtures way, but I will need to do that every time I know the existing database has changed a lot. So just copy the data when creating the test database seems more convenient. Tianyi On Frid

Re: Copy all the data from an existing database when create the testing database.

2013-10-04 Thread C. Kirby
Do you always want all of the data from the existing database, or is this just a quick way to have "real data" for testing. If it is the latter I would use manage.py dumpdata to generate test fixtures. You can load the fixtures in you tests as needed. Chaim On Friday, October 4, 20

Copy all the data from an existing database when create the testing database.

2013-10-04 Thread Tianyi Wang
Hi, When I run my tests, I'd like it to copy an existing database with all the data when create the testing database. I never thought about this till one of my colleague uses POSTGIS_TEMPLATE = DATABASES['default']['NAME'] for his tests. Because we use GeoD

Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Giorgos Kontogiorgakis
That's exactly what i did! In my Nodes table i have this one "domains = models.ForeignKey(Domains)" so now i can see the dependecy i want?Or? Is there any way when i press "Domains" on my interface to be able to see the "Nodes" table graphically? -- You received this message because you are sub

Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Avraham Serour
create a FK on Node to Domain On Mon, May 13, 2013 at 2:37 PM, Giorgos Kontogiorgakis < shortgeorge...@yahoo.com> wrote: > Thanks a lot for your help mate!It was silly by me that i did the steps in > wrong order!I added the foreign-key successfully now!But i have 1 more > question if you can hel

Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Giorgos Kontogiorgakis
Thanks a lot for your help mate!It was silly by me that i did the steps in wrong order!I added the foreign-key successfully now!But i have 1 more question if you can help me!I already have,let's say,a table named Domain and a table name Nodes and i want to make a dependecy on my webinterface wh

Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Avraham Serour
rge...@yahoo.com> wrote: > Hi everyone, > I'm trying to add a single foreign Key on an existing Database using > Django.I searched on internet and i found out South migration.I installed > South and i tried to add the Foreign Key but when i call "./manage.py > schemamigrat

How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Giorgos Kontogiorgakis
Hi everyone, I'm trying to add a single foreign Key on an existing Database using Django.I searched on internet and i found out South migration.I installed South and i tried to add the Foreign Key but when i call "./manage.py schemamigration myapp --auto" (myapp is the of my exis

Re: using existing database with django

2013-01-30 Thread Carlos Daniel Ruvalcaba Valenzuela
it. Regards, Carlos Ruvalcaba On Wed, Jan 30, 2013 at 7:01 PM, wrote: > I have an existing database but I would like to design around that database > using django...can I do this without altering the database in anyways > significantly? > > -- > You received this message because y

using existing database with django

2013-01-30 Thread arc4gold
I have an existing database but I would like to design around that database using django...can I do this without altering the database in anyways significantly? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: working django with existing database

2011-02-02 Thread arief nur andono
finally I got the answer... http://www.sqlalchemy.org/trac/wiki/SqlSoup http://spyced.blogspot.com/2006/04/introducing-sqlsoup.html from sqlalchemy.ext.sqlsoup import SqlSoup db = SqlSoup('oracle://z:z@xe') rp = db.bind.execute('select * from mupp') a = rp.fetchall() a[0].kodeupp a[0].na

Re: working django with existing database

2011-01-31 Thread Jani Tiainen
On Monday 31 January 2011 18:21:40 Ian wrote: > On Jan 31, 3:29 am, arief nur andono wrote: > > oh please... > > > > i need only to query the table, have no access to modified the table > > > > why there is no way query the database and then make the output as > > object?? > > You don't need to

Re: working django with existing database

2011-01-31 Thread Ian
On Jan 31, 3:29 am, arief nur andono wrote: > oh please... > > i need only to query the table, have no access to modified the table > > why there is no way query the database and then make the output as object?? You don't need to modify the table. That was just a recommendation. I also suggested

Re: working django with existing database

2011-01-31 Thread arief nur andono
errr...what do you think i read at http://code.activestate.com/recipes/285262-create-objects-from-variable-class-names/ class Bunch(dict): def __init__(self,**kw): dict.__init__(self,kw) self.__dict__ = self fruit = Bunch(apples=1, pears=2) print fruit.apples print fr

Re: working django with existing database

2011-01-31 Thread Adrian Bool
Arief, Just do a search and replace in your text file along the lines of, search for, max_digits=0, decimal_places=-127 replace, max_digits=10, decimal_places=2 And Django should be happy. aid On 31 Jan 2011, at 10:29, arief nur andono wrote: > oh please... > > i need only to query the t

Re: working django with existing database

2011-01-31 Thread arief nur andono
oh please... i need only to query the table, have no access to modified the table why there is no way query the database and then make the output as object?? 2011/1/31 Ian > On Jan 31, 12:20 am, arief nur andono > wrote: > > class TempJmlGangguanPyl(models.Model): > > singkatpyl = models.

Re: working django with existing database

2011-01-31 Thread Ian
On Jan 31, 12:20 am, arief nur andono wrote: > class TempJmlGangguanPyl(models.Model): >     singkatpyl = models.CharField(max_length=4, blank=True) >     singkatgrd = models.CharField(max_length=4, blank=True) >     jumlah_gangguan = models.DecimalField(null=True, max_digits=0, > decimal_places=-

Re: working django with existing database

2011-01-30 Thread Simone Dalla
2011/1/31 arief nur andono > sorry for undetail, i use oracle > > this is output example from my inspectdb, this is one of 300 table i have > > from django.db import models > > class TempJmlGangguanPyl(models.Model): > singkatpyl = models.CharField(max_length=4, blank=True) > singkatgrd =

Re: working django with existing database

2011-01-30 Thread arief nur andono
in my computer i use oracle XE and oracle XE in production actually i write an web application to replace desktop application with Visual Basic that has existing oracle table i thinking of django because it's for perfectionist with deadlines some people ask me to take a look to codeigniter since

Re: working django with existing database

2011-01-30 Thread Jani Tiainen
You didn't specify more details about Oracle version that you're using but from my experience with inspectdb and Oracle are not good ones, even though it works or at least with databases I've tried it with. I've decided - specially for Oracle to do it always by hand. That way, even it seems a s

Re: working django with existing database

2011-01-30 Thread arief nur andono
this is an instruction that i forgot # This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # Feel free to rename the models, but don't rename db_

Re: working django with existing database

2011-01-30 Thread arief nur andono
sorry for undetail, i use oracle this is output example from my inspectdb, this is one of 300 table i have from django.db import models class TempJmlGangguanPyl(models.Model): singkatpyl = models.CharField(max_length=4, blank=True) singkatgrd = models.CharField(max_length=4, blank=True)

Re: working django with existing database

2011-01-30 Thread Dilan Nery
arief, try see this howto: http://docs.djangoproject.com/en/1.2/howto/legacy-databases/ On Sun, Jan 30, 2011 at 12:50 PM, arief nur andono wrote: > i've tried inspect-db but i still have no vitctory > > it's get error while i recompile back it to oracle by syncdb > errr...and something i don't k

Re: working django with existing database

2011-01-30 Thread Jirka Vejrazka
> i've tried inspect-db but i still have no vitctory Err, what exactly does that mean? Did you get an error message? > it's get error while i recompile back it to oracle by syncdb Again - difficult to help you if you don't say *what* error. > errr...and something i don't know, if i syncdb,

Re: working django with existing database

2011-01-30 Thread arief nur andono
i've tried inspect-db but i still have no vitctory it's get error while i recompile back it to oracle by syncdb errr...and something i don't know, if i syncdb, what's will happen to the data? will i lost it?? 2011/1/30 Shawn Milochik > Try inspectdb: > > http://docs.djangoproject.com/en/dev/ref

Re: working django with existing database

2011-01-30 Thread Shawn Milochik
Try inspectdb: http://docs.djangoproject.com/en/dev/ref/django-admin/#inspectdb Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send emai

Re: working django with existing database

2011-01-30 Thread Jirka Vejrazka
Search documentation for "inspectdb" HTH Jirka On 30/01/2011, arief nur andono wrote: > is there anybody could save my time to make django work with existing > database so i need only create the sql in model (not have to define > table and field in models.py) > &g

working django with existing database

2011-01-30 Thread arief nur andono
is there anybody could save my time to make django work with existing database so i need only create the sql in model (not have to define table and field in models.py) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Using an existing database of astronomic images

2007-10-02 Thread Russell Keith-Magee
On 10/2/07, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > > [snipped] > > First and before the feeding of the database, after creating my > > database in the mysql prompt by inserting SQL code could django > > analyse my clean database and create class for each table? > > with the right field typ

Re: using a existing database

2007-10-02 Thread Ben Ford
eg_IAP <[EMAIL PROTECTED]> wrote: > > > HI, yesterday i send a message which asks of using an existing > database with Django. > > Thanks to the guy who has answered me, but i have to explain a little > bit more my problem. > > I 'm in charge of developping an a

Re: Using an existing database of astronomic images

2007-10-02 Thread Thejaswi Puthraya
[snipped] > First and before the feeding of the database, after creating my > database in the mysql prompt by inserting SQL code could django > analyse my clean database and create class for each table? > with the right field type? Try using the inspectdb command. Refer to http://www.djangoprojec

Using an existing database of astronomic images

2007-10-02 Thread Greg_IAP
HI, yesterday i send a message which asks of using an existing database with Django. Thanks to the guy who has answered me, but i have to explain a little bit more my problem. I 'm in charge of developping an astronomic images and metadata database for scientists in mysql, composed by 9 t

using a existing database

2007-10-02 Thread Greg_IAP
HI, yesterday i send a message which asks of using an existing database with Django. Thanks to the guy who has answered me, but i have to explain a little bit more my problem. I 'm in charge of developping an astronomic images and metadata database for scientists in mysql, composed by 9 t

Re: Connexion to an existing database

2007-10-01 Thread Henning Hraban Ramm
Am 2007-10-01 um 14:25 schrieb Greg_IAP: > i tried to understand if i could use django to do some modifications > to an existing database...in vain. > I understand that i must rewrite the structure of the database through > django to produce a database model and to permit django t

Connexion to an existing database

2007-10-01 Thread Greg_IAP
Hi everybody, i tried to understand if i could use django to do some modifications to an existing database...in vain. I understand that i must rewrite the structure of the database through django to produce a database model and to permit django to understand my database structure through classes

TimeField woes with existing database

2006-11-04 Thread [EMAIL PROTECTED]
I'm trying to setup a Django app based on an existing sqlite3 db. Everything going swimmingly, except for one pesky TimeField... The problem seems to be that the db table has this column declared to be of type TIME, and the django model thinks its of type TimeField. But the data is of the format

TimeField woes with existing database

2006-11-02 Thread Rachel Willmer
(This is a duplicate of a message I sent yesterday via Google Groups which doesn't seem to have showed up yet) I'm trying to use an existing sqlite3 database with a new Django application. All going swimmingly apart from a problem with one db column. The db column is of type TIME, the Django mod

Re: Existing database into django models?

2006-06-19 Thread [EMAIL PROTECTED]
NP.  Thanks guys, excellent responses!On 6/19/06, Josh Trutwin <[EMAIL PROTECTED]> wrote: On Mon, 19 Jun 2006 14:18:54 +0100"Phil Powell" < [EMAIL PROTECTED]> wrote:>> This ought to do the job:>> http://www.djangoproject.com/documentation/legacy_databases/ Definately - it does a decent job building

Re: Existing database into django models?

2006-06-19 Thread Josh Trutwin
On Mon, 19 Jun 2006 14:18:54 +0100 "Phil Powell" <[EMAIL PROTECTED]> wrote: > > This ought to do the job: > > http://www.djangoproject.com/documentation/legacy_databases/ Definately - it does a decent job building a starting Model, but you will definately have to go through it and make sure ev

Re: Existing database into django models?

2006-06-19 Thread Michael Radziej
Malcolm Tredinnick wrote: > On Mon, 2006-06-19 at 13:04 +, Mike Crowe wrote: > There is some support for this. See here: > http://www.djangoproject.com/documentation/django_admin/#inspectdb Hey, and let me add that you might want to check ticket 1561. Malcolm told me that in the meantime for

Re: Existing database into django models?

2006-06-19 Thread Phil Powell
This ought to do the job: http://www.djangoproject.com/documentation/legacy_databases/ -Phil On 19/06/06, Mike Crowe <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I'm just starting looking at a django backend for a system we need to > redo. The existing db is MSSQL (yes, I know it's not quite s

Re: Existing database into django models?

2006-06-19 Thread Malcolm Tredinnick
On Mon, 2006-06-19 at 13:04 +, Mike Crowe wrote: > Hi folks, > > I'm just starting looking at a django backend for a system we need to > redo. The existing db is MSSQL (yes, I know it's not quite supported > yet). We need a system which supports most of the adodb classes. We > will start w

Existing database into django models?

2006-06-19 Thread Mike Crowe
Hi folks, I'm just starting looking at a django backend for a system we need to redo. The existing db is MSSQL (yes, I know it's not quite supported yet). We need a system which supports most of the adodb classes. We will start with supported DB's, and hopefully the additional ones will be rea

Re: Using existing database shema

2006-05-19 Thread Filipe
Hi again, I guess it's time to start experimmenting then :) thanks for the help Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Re: Using existing database shema

2006-05-17 Thread Michael Radziej
Hey Filipe, Filipe wrote: > Custom SQL + Manipulators does sound as the way to use my own model > classes. It doesn't seem as the most straightforward way to use Django > though, anyone out there actually working with Django this way? > > Michael, are you actually using Django (ORM included) wit

Re: Using existing database shema

2006-05-17 Thread Filipe
> Filipe, what kinds of tables use composite primary keys for you? > [ ] association tables for many-to-many relations > [ ] dependent tables > [ ] "inheritence" look-alikes The first two, "association tables for many-to-many relations" and "dependent tables". Inheritance look-alikes also exis

Re: Using existing database shema

2006-05-16 Thread Michael Radziej
Joseph Kocherhans wrote: > On 5/16/06, Filipe <[EMAIL PROTECTED]> wrote: >> Do you think I'll find difficulties in using model classes with my own >> data persistency logic? In such case, will I loose other features >> besides the ORMapping itself? (I've read something about loosing >> autogenerat

Re: Using existing database shema

2006-05-16 Thread Joseph Kocherhans
On 5/16/06, Filipe <[EMAIL PROTECTED]> wrote: > Do you think I'll find difficulties in using model classes with my own > data persistency logic? In such case, will I loose other features > besides the ORMapping itself? (I've read something about loosing > autogenerated admin pages, form validation

Re: Using existing database shema

2006-05-16 Thread Filipe
I fear to get into trouble if I choose to use inspectdb, there are a lot of composited primary keys and many-to many-relations in this DB (I know that the ORM in Django supports m-to-m relations, but knowing it is usually a sensible point in ORMs, I would prefer not to use an ORM just yet). Still

Re: Using existing database shema

2006-05-15 Thread Michael Radziej
m > "meta.Model". > > My question is, how about using an already existing database? I will > need to use a database of an application that is currently in > production (I can't touch it's schema), so the DB won't be generated > from my model in Django. Is it

Re: Using existing database shema

2006-05-15 Thread Malcolm Tredinnick
Django, as long as one does not inherit models from > "meta.Model". Correct. > My question is, how about using an already existing database? I will > need to use a database of an application that is currently in > production (I can't touch it's schema), so the DB won&

Re: Using existing database shema

2006-05-15 Thread Kenneth Gonsalves
On Monday 15 May 2006 4:25 pm, Filipe wrote: > My question is, how about using an already existing database? I > will need to use a database of an application that is currently > in production (I can't touch it's schema), so the DB won't be > generated from my model i

Using existing database shema

2006-05-15 Thread Filipe
estion is, how about using an already existing database? I will need to use a database of an application that is currently in production (I can't touch it's schema), so the DB won't be generated from my model in Django. Is it possible to use model classes without the object-relational m

Re: Easy way to add tables to existing database?

2005-09-22 Thread Kenneth Gonsalves
On Thursday 22 Sep 2005 10:55 pm, jocknerd wrote: > Make the change to the model and then run django-admin.py sql > myproject.  I'm using PostgreSQL so I type psql databasename and then > create the new table with the sql code for the new table that was > generated previously.  Then I restart the

Re: Easy way to add tables to existing database?

2005-09-22 Thread Adrian Holovaty
On 9/22/05, jocknerd <[EMAIL PROTECTED]> wrote: > What's the easiest way to add a table to an existing database. I'm > currently destroying the database and recreating it but this will be a > problem once I've got real data. I was thinking about doing this: > &

Easy way to add tables to existing database?

2005-09-22 Thread jocknerd
What's the easiest way to add a table to an existing database. I'm currently destroying the database and recreating it but this will be a problem once I've got real data. I was thinking about doing this: Make the change to the model and then run django-admin.py sql myproj

Re: Existing Database?

2005-08-19 Thread Jason F. McBrayer
On Fri, 2005-08-19 at 08:35 +0200, Andreas Kostyrka wrote: > And there is completely another answer that would match with the > question: How to write a completely "independant" model -> which APIs > must be implemented by a model. (Consider "legacy databases" that are no > SQL databases.) I am

Re: Existing Database?

2005-08-18 Thread Andreas Kostyrka
Am Donnerstag, den 18.08.2005, 15:52 -0500 schrieb Adrian Holovaty: > On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm in the process of doing this myself. I'm porting a job monitoring > > system to django. It was written in python before, but the web front > > end was written in PH

Re: Existing Database?

2005-08-18 Thread Adrian Holovaty
On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm in the process of doing this myself. I'm porting a job monitoring > system to django. It was written in python before, but the web front > end was written in PHP. Seems to be going well so far. I have the model > and can access the API

Re: Existing Database?

2005-08-18 Thread [EMAIL PROTECTED]
I'm in the process of doing this myself. I'm porting a job monitoring system to django. It was written in python before, but the web front end was written in PHP. Seems to be going well so far. I have the model and can access the APIs. I've come across some issues, but am new to django, so am work

Re: [newbie] Existing Database?

2005-08-18 Thread Jacob Kaplan-Moss
On Aug 18, 2005, at 10:32 AM, dharms wrote: This is a complete newbie question. I'm curious what experiences people had adopting Django to an already existing database (in use by other software and thus not easily changeable). Do you just have to create a model that matches the exis

[newbie] Existing Database?

2005-08-18 Thread dharms
This is a complete newbie question. I'm curious what experiences people had adopting Django to an already existing database (in use by other software and thus not easily changeable). Do you just have to create a model that matches the exisiting database, and what may be some caveats? Thanks! D.