I M STILL GETTING AN ERROR when i try

 django-admin.py inspectdb --settings=mysite.settings > newmodels.py


Traceback (most recent call last):
  File "/home/usrexx/bin/django-admin.py", line 8, in ?
    management.execute_from_command_line()
  File "/usr/lib/python2.4/site-packages/django/core/management.py",
line 1254, in execute_from_command_line
    for line in action_mapping[action]():
  File "/usr/lib/python2.4/site-packages/django/core/management.py",
line 720, in inspectdb
    relations = introspection_module.get_relations(cursor, table_name)
  File
"/usr/lib/python2.4/site-packages/django/db/backends/postgresql_psycopg2/introspection.py",
line 35, in get_relations
    relations[int(row[0][1:-1]) - 1] = (int(row[1][1:-1]) - 1, row[2])
TypeError: int() argument must be a string or a number

thanks

Kenneth Gonsalves wrote:
> On 09-Aug-06, at 3:54 PM, a wrote:
>
> > i already have the db in postgres not one in fact several
> >
> > is there an easy way to do the admin interface for these tables using
> > Django
>
> http://www.djangoproject.com/documentation/legacy_databases/
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/web/


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to