odieatla odieatla - 1 year ago 68
Python Question

"python manage.py syncdb" not creating tables

I first ran

python manage.py syncdb

and it created the database and tables for me, then I tried to add more apps, and here's what I did:

create apps by

python manage.py startapp newapp

Then I added
in setting.py:


At last I ran

python manage.py syncdb

and here's the result I get:

Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

I checked my db and there is no table named
, no table's name including

Answer Source

If you run:

python manage.py inspectdb > somefile.txt

You can get quickly check out if your database structure is matching your django models.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download