Hi, I'm new to django too, but I was able to define models for a legacy database and specifying the primary keys using "primary_key=True". Our tables have composite PKs, so I just added that option for all the columns that were appropriate. I don't know whether django does anything with the composite keys, but everything seems to work just fine and I can run databrowse to look at my tables. If you just want to browse your tables, something like dbvis seems like a better option.
BTW, I did all this before I knew of http://docs.djangoproject.com/en/dev/howto/legacy-databases/?from=olddocs and haven't had a chance to try this out, but this may be of some use to you. -Jim On Aug 19, 2:29 am, Brianna Laugher <[email protected]> wrote: > Hi, > > I have a read-only Oracle database that I'd like to use Django's > databrowse to, well, browse. However Django's primary key requirement, > along with my database being read-only, means I can't use Django's > default models and DB handling. > > If I use something else like SQLAlchemy, so that I can specify > composite primary keys, will I be able to use databrowse? I had a bit > of a look at the databrowse source, but I'm new to Django and and > nothing immediately jumped out at me as a gotcha. > > thanks, > Brianna -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

