By jtpank34
I ran:
pip install -U Django
But because the python default version is restricted to 2.7, I cannot upgrade to Django 2.1 and my django project requires imports unique to django 2 and above.
I have python 3 installed but the default executable path is /usr/bin/python which contains python 2.7
How can I default run python 3 and install Django 2.1 so when I access my site using the IP address given to me, it loads the newest versions instead of defaulting to python 2.7 and consequently Django 1.11.18?
It seems that running a virtualenv requires me to copy all my code into the nano editor, and I can only run a localhost server.
Maybe my issue lies in the fact that I am incorrectly inputting the host IP under the Django settings file.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.