realpython / realpython-blog

real python blog posts
https://realpython.com/blog/
200 stars 86 forks source link

Django redis cache blog, no such table error #34

Closed viveksyngh closed 7 years ago

viveksyngh commented 7 years ago

Django redis cache blog had one issue, after following given steps when we load data it gives below error because cookbook apps tables are not migrated.

django.db.utils.OperationalError: Problem installing fixture '/Users/viveks/Repos/Learning/django-redis-cache/cookbook/fixtures/cookbook.json': Could not load cookbook.Recipe(pk=1): no such table: cookbook_recipe

Please find the issue for reference. https://github.com/realpython/django-redis-cache/issues/1

Fixed it by adding command to migrate cookbook app tables before loading data

mjhea0 commented 7 years ago

changes are live on https://realpython.com/blog/python/caching-in-django-with-redis/