django error OperationalError at /admin/blog/post/

Remaze Vs picture Remaze Vs · Jun 17, 2015 · Viewed 12.4k times · Source

i get this error in simple django programme run.. OperationalError at /admin/blog/post/ no such table: blog_post

Answer

doniyor picture doniyor · Jun 17, 2015

if django version >=django 1.7

python manage.py makemigrations 
python manage.py migrate

else

python manage.py schemamigrations
python manage.py migrate 

so you need to migrate (map the model changes / new models into database tables) the changes so that your page works properly