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. However previously I added django to both the default python 2.7 and the installed python 3.4. Now I'm not sure which django i used when I ran:
django-admin.py startproject testproject.
Is there a way to check and ideally to set it?
Edit : Now following https://robinwinslow.co.uk/2013/12/26/python-3-4-virtual-environment/
I tried:
~$ pyvenv-3.4 djenv
Error: Command '['/home/ubuntu/djenv/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip
']' returned non-zero exit status 1
Any idea what I'm doing wrong?