Forums

Django Version Problems

I set up a virtual environment and install Django 1.7, and ran the migration commands for my Django project.

When I go to /admin/, I get the error:

Django Version: 1.6.6 Exception Type: OperationalError Exception Value:
no such column: django_content_type.name

It is showing 1.6 as my Django version and causing an error. How do I fix this?

You need to tell PythonAnywhere to use the virtualenv for the web app -- if you take a look on the "Web" tab, you'll see a place where you can specify it near the top of the page. Once you've entered the path, reload the app, and it should run with the updated Django version.