I ran first
python manage.py syncdb
and he created a database and tables for me, then I tried to add more applications, and here is what I did:
create applications
python manage.py startapp newapp
Then I added 'newapp' to INSTALLED_APPS in settings.py:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'newapp', )
Finally I ran syncdb :
python manage.py syncdb
and here is the result:
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 newapp , there is no table name including newapp .
python django
odieatla
source share