Code

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
comments powered by Disqus

Related Posts

Regex Cheatsheet

We have compiled a list of regular expression cheatbook to help in learning regular expressions. This is categorized into multiple sections for easy understanding.

Read more

Types of Web Hosting

The internet is emerging fast and big and today we have a variety of options to host our website than we had earlier.

Read more

Tutorial Sites List Free Paid Programmers

Are you a developer who wants to improve your knowledge. Are you a student trying to get a job in the IT industry.

Read more