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 group, send e

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 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 arief nur andono
n't rename db_table values or field names. # # Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]' # into your database. 2011/1/31 arief nur andono > sorry for undetail, i use oracle > > this is output example from my inspectdb, t

Re: working django with existing database

2011-01-30 Thread arief nur andono
els in a short time. So you really need only a few of them and can > easily add new ones as you go. > > Also finding things like m2m relations are not easy to do automatically, > though > not possible. > > -- > > Jani Tiainen > > On Monday 31 January 2011 07:20:50 a

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): > &

Re: working django with existing database

2011-01-31 Thread arief nur andono
gt; > 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 table, have no access to modified the table > > why there is no

Re: working django with existing database

2011-02-02 Thread arief nur andono
l() a[0].kodeupp a[0].nama that's what i looking for...do django has the same function??? I hope so... thanks for all inspiring response 2011/2/1 Jani Tiainen > On Monday 31 January 2011 18:21:40 Ian wrote: > > On Jan 31, 3:29 am, arief nur andono wrote: > > > oh please...