django - "python manage.py syncdb" not creating tables -


i first ran

python manage.py syncdb 

and created database , tables me, tried add more apps, , here's did:

create apps by

python manage.py startapp newapp 

then added 'newapp' installed_apps in setting.py:

installed_apps = (     'django.contrib.admin',     'django.contrib.auth',     'django.contrib.contenttypes',     'django.contrib.sessions',     'django.contrib.messages',     'django.contrib.staticfiles',     'newapp', ) 

at last ran syncdb:

python manage.py syncdb 

and here's result get:

creating tables ... installing custom sql ... installing indexes ... installed 0 object(s) 0 fixture(s) 

i checked db , there no table named newapp, no table's name including newapp.

if run:

python manage.py inspectdb > somefile.txt 

you can check out if database structure matching django models.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -