I have followed all the steps from django girls on how to deploy my app but it gives me the following error in my error log: This "virtualenv seems to have the wrong Python version (2.7 instead of 3.4)" how I can fix it? thanks!
I have followed all the steps from django girls on how to deploy my app but it gives me the following error in my error log: This "virtualenv seems to have the wrong Python version (2.7 instead of 3.4)" how I can fix it? thanks!
I think you may have used the wrong command when you created the virtualenv. The current version of the Django Girls tutorial says that you should run this:
virtualenv --python=python3.5 myvenv
...but if you're getting that error, you probably ran this:
virtualenv myvenv
...or something similar.
The easiest solution is to re-create the virualenv. Firstly, remove the old one. In a bash console:
cd /home/malejam5/my-first-blog/
rm -rf myvenv
Next, create a new one with the right command and install Django again:
virtualenv --python=python3.5 myvenv
source myvenv/bin/activate
pip install django~=1.10.0
Reload the web app on the "Web" tab, and the warning should go away.