Hi, I have an existing 3GB PostGIS legacy database which i am inspecting with: django-admin.py inspectdb > /some/directory/models.py
i have installed psycopg2 so my settings.py looks like: DATABASE_ENGINE = 'postgresql_psycopg2' when i run the command i get the error: File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/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 Maybe this is because the db is spatially enabled?..i am not sure. Or maybe i should revert to psycopg1?.New to Django to be honest. Any advice thx []'s -- Ian Lawrence Centre for Bioinformatics INSTITUTO NACIONAL DE PESQUISAS DA AMAZÔNIA INPA RUA ANDRÉ ARAÚJO N º .2936 BAIRRO DO ALEIXO MANAUS-AMAZONAS-BRAZIL PPBio Research Program in Biodiversity http://ppbio.inpa.gov.br PHONE: 055-92-3643-3358 CEP. 69011 -970 | Please do not send me documents in a closed | format.(*.doc,*.xls,*.ppt) | Use the open alternatives. (*.pdf,*.html,*.txt) http://www.gnu.org/philosophy/no-word-attachments.htm What is the digital equivalent of lovely, he wondered. What are the digits that encode beauty, the number fingers that enclose, transform, transmit, decode and somehow in the process, fail to trap or choke the soul of it. Not because of the technology but in spite of it, beauty, that ghost, that treasure, passes undiminished through the new machines --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---