Re: Installed Django 4.1 but version is 2.2

2023-03-21 Thread Joao Frankmann
I am running on a containerised virtual environment completely isolated to the system. when I run django --version, it shows me the version 4.1, but when I check the code, it is not the code for 4.1 but the code for 2.2 On Tuesday, 21 March 2023 at 11:20:46 UTC Andréas Kühne wrote: > I am guess

Re: Installed Django 4.1 but version is 2.2

2023-03-21 Thread Andréas Kühne
I am guessing this is because you are running your systems installed django-admin for setting up the project and not in a virtualenvironment? Before running django-admin startproject mysite, make sure that you have created a virtualenvironment and install the version of django that you want. Rega

Installed Django 4.1 but version is 2.2

2023-03-21 Thread Joao Frankmann
I've been using django for a while and today when starting a new project I noticed that when I run: django-admin startproject mysite The settings.py generated file says: Generated by 'django-admin startproject' using Django 2.2.19 and the code is not the new one. I have projects written in d