I think you can configure your settings to access the database, and after
that, you can run this command:

python manage.py inspectdb > youtfile.txt

Than, you'll have to realocate the models, 'cause django will output all
tables in the database like models.py ;)

Is that what you want?

Hope it help!


Fred Chevitarese - GNU/Linux
http://chevitarese.wordpress.com



2010/12/22 Vikram <vikramsingh...@gmail.com>

> Hi,
>
> I am working on building an app that reports the data from the already
> existing tables in the Oracle DB. These tables are data-dictionary
> tables and my application will connect to these tables using read-only
> access to SELECT and draw graphs on the webpage.
> How do I build my application that queries the already existing
> tables? Am new to web development and all Django documentation
> discusses models that get created according to the models.py.
>
> Scenario:
> table v$session contains all the current sessions information and is
> under SYS user. My web application should connect as webinfo user that
> has read-only access on v$session table, query the data and present it
> in webpage.
>
> Do I write views that directly talk to these tables, pull data and
> render it online? Or is there a better way?
>
> Thanks
> Vikram
>
> --
> 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
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to