# Switch multiple versions of Django

**URL:** <https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466>\
**Category:** Using Django\
**Created:** [January 9, 2022, 7:11pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466 "2022-01-09T19:11:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgfra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bgfra/32/1200_2.png) [@bgfra](https://forum.djangoproject.com/u/bgfra)\
**Post date:** [January 9, 2022, 7:11pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466/1 "2022-01-09T19:11:25Z")

</div>

Hi,

I use linux Mint 19.3 Tricia with installed python 2.7 (default) 3.6 and 3.8.  
I installed both django 1.11.11 and django 3.2, they both load correctly but when a give the command django-admin.py istartproject it only creates a project using django 3.2, how do I do to averrun this problem and start a project for django 1.11 ?

Thanks

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [January 9, 2022, 7:16pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466/2 "2022-01-09T19:16:33Z")

</div>

Please provide more details about **exactly** what you mean when you say “they both load correctly”.

Do you have python virtual environments configured for these? If not, you probably should.

---

<div class="post-metadata">

**Author:** ![bgfra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bgfra/32/1200_2.png) [@bgfra](https://forum.djangoproject.com/u/bgfra)\
**Post date:** [January 10, 2022, 12:28pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466/3 "2022-01-10T12:28:50Z")

</div>

Hi,  
I mean,  
 ![Ex](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/2X/1/16704c5eadcd9c056c46bf365a41f7f6e7db4b6d.jpeg)

---

<div class="post-metadata">

**Author:** ![bgfra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bgfra/32/1200_2.png) [@bgfra](https://forum.djangoproject.com/u/bgfra)\
**Post date:** [January 10, 2022, 12:30pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466/4 "2022-01-10T12:30:49Z")

</div>

I use a virtual environment only for django 3.2, should I use it for both ?

Thanks

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [January 10, 2022, 1:33pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466/5 "2022-01-10T13:33:37Z")

</div>

> [@bgfra](#):
>
> should I use it for both ?

Should you? I’d say yes. It’s the easiest way to help keep things “straight” between the versions.

Aside from that, I believe the fundamental issue is that the command line command `django-admin.py` typically gets installed in `/usr/bin` with a link to the specific version of python under which it is installed. There’s only one file installed - it’s not like python where you get a `python2` and `python3` link installed for the different versions.

As a result, to run a different version at the system level, you’d have to do something like `python2 -m django startproject xyz`.

But I’d still recommend you get into the habit of doing all this in virtual environments. I never recommend running Django using the system-installed environment.

---

<div class="post-metadata">

**Author:** ![bgfra](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/bgfra/32/1200_2.png) [@bgfra](https://forum.djangoproject.com/u/bgfra)\
**Post date:** [January 10, 2022, 1:44pm UTC](https://forum.djangoproject.com/t/switch-multiple-versions-of-django/11466/6 "2022-01-10T13:44:22Z")

</div>

Thank you gentleman, I found what I needed.

Gianfranco
