Forums

OperationalError at /admin/

I'm just trying to do a basic tutorial and everything is going fine until the Django admin step: http://tutorial.djangogirls.org/en/django_admin/index.html

The only model I've created is Post and it has been migrated. I created a superuser and I was able to get to the admin login page. But as soon as I login I get:

OperationalError at /admin/ no such column: django_content_type.name

http://andrewicus.pythonanywhere.com/admin/

That sounds to me like you need to do a manage.py migrate. Also, check that your virtualenv is active?

@harry I've definitely run a successful migrate and yes, definitely in a virtualenv. I'm a bit stumped :/

try deleting the database and starting again from scratch? (or renaming it)