I am working to set up a django project on ec2 with an Ubuntu 14.4 LTS instance. I want to write my code using python 3 and django. I'm following http://www.nickpolet.com/blog/deploying-django-on-aws/1/ and have been able to get the django start page working. Previously I added django to both the default python 2.7 and the installed python 3.4.
I've created a virualenv and if I run the program after activating the virualenv I can use the python 3.4 interpreter. However, while testing I got the following error when I open the amazon ip address:
Exception Location: /usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response, line 111
Python Executable: /usr/bin/python
Python Version: 2.7.6
As you can see the default python interpreter is in use. How do you force django to use the python 3 virtualenv?