How to maintain multiple versions of django without using using virtual envs.

Most linux come installed with python 2.7. Some even come installed with both 2.7 and 3 as well.

django upto version 1.11 will work with python 2.7. Anything greater than that needs python 3.

If in a system you have both version of python each accessed by the terms python referring to 2.7 and python3 referring to version 3 and you want to run django 1.11 and django 2.2, how do we do that.

Creating django 1.11 project

python -m django startproject djangousing1point11

Running the project

python manage.py runserver

Creating django 2 project

python3 -m django startproject djangousing3

Running the project

python3 manage.py runserver

Related Content

Featured Posts

Types of Web Hosting

Types of Web Hosting