Django OperationalError: no such table

For the past few weeks i have been working with RapidSMS on an application and dealing with a particularly frustrating error in early set up
django.db.utils.OperationalError: no such table: django_digest_partialdigest
Searched and read the documentation till i found it all came down to how the apps were ordered in the INSTALLED_APPS setting of the settings.py file. Tables for those apps are generated in the order they are listed so if you list App2 above App1 when App2 tables require the existance of App1 tables, you will encounter the error above.
All i did was move django_digest up the list in the INSTALLED_APPS setting in the settings.py file and the problem was fixed.
Advertisements

1 Comment

Filed under Code

One response to “Django OperationalError: no such table

  1. Abel

    I also had an error like yours, but my problem was a I had a model and tuple created from another model, the first a had to do was comment de tuple create all the tables and then uncomment the tuple

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s