zackargyle/angularjs-django-rest-framework-seed

After following installing instructions receiving missing table error

Closed this issue · 4 comments

On step 3 of install. Running fab install:version=2.7 gives error:

django.db.utils.OperationalError: no such table: authtoken_token

Fatal error: local() encountered an error (return code 1) while executing 'python2.7   manage.py syncdb'

Aborting.

Are you using python 2.7 or a different version? Try running "fab install" rather than "fab install:version=2.7"

I'm using Python 2.7.2. I ran fab install without version and it finished correctly.

Also deleting "db.sqlite3" and running "fab install" gives the same error. Apparently the table is not getting created?

(stock_cutting)localhost:Django drios$ fab install
[localhost] local: pip install south django djangorestframework django-cors-headers
Requirement already satisfied (use --upgrade to upgrade): south in        /Users/drios/dan_repos/virtenv/stock_cutting/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): django in /Users/drios/dan_repos/virtenv/stock_cutting/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): djangorestframework in /Users/drios/dan_repos/virtenv/stock_cutting/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): django-cors-headers in /Users/drios/dan_repos/virtenv/stock_cutting/lib/python2.7/site-packages
Cleaning up...
[localhost] local: python manage.py syncdb
Syncing...
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_admin_log
Creating table south_migrationhistory

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
....
django.db.utils.OperationalError: no such table: authtoken_token

Fatal error: local() encountered an error (return code 1) while executing 'python manage.py syncdb'

Good catch, I have that mentioned in the django-rest-framework-seed project, but not this one. You have to say no at that section, because the south migrations have not created created the authtoken table.