[Django]-Using Django ORM inside Tornado, "syncdb" doesn't work

0👍

if you did

   django-admin startproject foobar

then your settings should look like :

   INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'foobar',
   )

then

   python manage.py syncdb 

will give you

   Creating tables ...
   Creating table auth_permission
   Creating table auth_group_permissions
   Creating table auth_group
   Creating table auth_user_groups
   Creating table auth_user_user_permissions
   Creating table auth_user
   Creating table django_content_type
   Creating table django_session
   Creating table django_site
   Creating table foobar_mymodel

Leave a comment