Questions tagged [inspectdb]

55 questions
0
votes
1 answer

strange migration from django to postgres DB. How to save an exist data

I have walking on a strange way, but it is result of circumstances. I had to been generate single models.py from exist postgres DB by inspect_db. Next I fix some field (was a few problem with keys), and create 2 apps inside this project. So now I…
Tyomik_mnemonic
  • 786
  • 3
  • 9
  • 31
0
votes
3 answers

python import cx_Oracle error

I'm trying to install cx_Oracle to use Django inspectdb on an existing Oracle database to create models.py automatically. So far i'ts been very hard. I'm running a VM with Fedora 14 64bit and Python 2.7 and followed a mix of pages found with google…
0
votes
0 answers

Is there a Django's inspectdb equivalent for Hibernate?

I've used Django's inspectdb command in the past, which gives you models from an existing database. I've searched and I found some GUI tools like jboss tools, but I think It's not what I'm looking for cause It's too heavy. Is there something…
Doongsil
  • 490
  • 4
  • 8
0
votes
1 answer

Django: Can't import multiply legacy databases

So I am trying to stand up a Django site that will query my DBs and return reports. I have 5 legacy DBs that need to be imported. I set one as default and ran inspectdb. This one imported correctly and now is all set. I ran inspectdb against the…
Joe
  • 2,641
  • 5
  • 22
  • 43
0
votes
1 answer

Django: can't inspectdb second database

I have the following 2 databases in my DATABASES dictionary: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'C:/Users/B/Desktop/board.db' }, 'game':{ 'ENGINE':…
TheEyesHaveIt
  • 980
  • 5
  • 16
  • 33
0
votes
1 answer

inspectdb on MySQL throws exceptions

I'm trying to run inspectdb and getting connection does not exist error! I have a database by name myapp in MySQL along with other databases. This is my settings.py DATABASES = { 'default': { 'ENGINE':'django.db.backends.mysql', 'NAME':…
Gopi
  • 216
  • 1
  • 3
  • 11
0
votes
1 answer

django inspectdb not getting all my tables

Running the "inspectdb" with django and it returns a model file but the model file is missing some of the tables in my db. It actually has a table that was put in awhile ago but later deleted or replaced. Do I need to update my DB or something, it…
shreddish
  • 1,637
  • 8
  • 24
  • 38
0
votes
1 answer

Django - Use of inspectdb for user's uploaded table

My web application allow users to load/create tables in the Postgres database. I know Django ORM needs a model definition in models.py for each table in the database to access it. I wonder if I could call manage.py inspectdb from a script after an…
Below the Radar
  • 7,321
  • 11
  • 63
  • 142
0
votes
2 answers

Inspectdb in Oracle-Django gets OCI-22061: invalid format text [T

I'm using Oracle Database 10g xe universal Rel.10.2.0.1.0 against cx_Oracle-5.0.4-10g-unicode-py26-1.x86_64 on a django project on Ubuntu 10.04 My db is generated by Oracle 10gr2 enterprise edition (on Windows XP, import done in US7ASCII character…
marlen
  • 473
  • 6
  • 20
-1
votes
1 answer

inspectdb -bash: /var/www/myproject/myproject/models.py: Permission denied

sudo python2.7 var/www/myproject/manage.py inspectdb > /var/www/myproject/myproject/models.py -bash: /var/www/myproject/myproject/models.py: Permission denied On ec2 amazon web service can't inspectdb
Andrei Eremchuk
  • 155
  • 1
  • 1
  • 8
1 2 3
4