Re: inspectdb and postgresql schema

2009-08-12 Thread Russell Keith-Magee

On Wed, Aug 12, 2009 at 6:09 PM, Marek
Pietrucha wrote:
>
> Thank you for the anwser :)
>
> It's not comforting but now I don't have to dig the whole google
> achieve ;)
>
> In this case, how do I construct django models?

I don't want to seem rude, but we provide an extensive documentation
for a reason.

http://docs.djangoproject.com/en/dev/

Yours
Russ Magee %-)

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



Re: inspectdb and postgresql schema

2009-08-12 Thread Marek Pietrucha

Thank you for the anwser :)

It's not comforting but now I don't have to dig the whole google
achieve ;)

In this case, how do I construct django models?

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



Re: inspectdb and postgresql schema

2009-08-11 Thread Russell Keith-Magee

On Tue, Aug 11, 2009 at 10:41 PM, Marek
Pietrucha wrote:
>
> Hello,
>
> I have a relational database written in PostgreSQL 8.4. I use
> different schemas - not default public schema. I tried to inspectdb my
> database but the output was clean. It looked like the inspectdb tool
> didn't look in my schemas. I thought it was the matter of the pg
> driver, so I changed it from postgresql-psycopg2 to postgresql.
> Nothing changed. The output was the same.
>
> Is it possible to generate models from my database?
>
> Am i doing something wrong?
>
You're not doing anything wrong; you've just hit the limitations of inspectdb.

Django doesn't currently support database-level schemas. As a result,
inspectdb won't look into schemas to find table definitions.

Adding support for schemas has been proposed in the past, and has
received support from the core team. This means schema support will
probably be added in some future version of Django. However, this
doesn't necessarily mean that they will automatically be fully
supported in inspectdb - inspectdb is intended as a crutch, not as a
major part of the Django development process. The capabilities of
inspectdb have always lagged behind those of Django itself, simply
because introspection of this kind is extremely difficult to achieve.

Yours,
Russ Magee %-)

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



inspectdb and postgresql schema

2009-08-11 Thread Marek Pietrucha

Hello,

I have a relational database written in PostgreSQL 8.4. I use
different schemas - not default public schema. I tried to inspectdb my
database but the output was clean. It looked like the inspectdb tool
didn't look in my schemas. I thought it was the matter of the pg
driver, so I changed it from postgresql-psycopg2 to postgresql.
Nothing changed. The output was the same.

Is it possible to generate models from my database?

Am i doing something wrong?

Thanks for help :)

best regards,
mark

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