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 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. > > Regards, > > Andréas > > > Den tis 21 mars 2023 kl 11:41 skrev Joao Frankmann <[email protected]>: > >> 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 django 4 and >> in django 2 and the code generated is equal to the django 2 >> >> I also ran: >> python -m django --version >> >> which returns: >> 4.1.7 >> >> Python version is 3.11 >> >> Anyone else have this issue? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/46378822-779f-4f06-be22-6f1d4241f8dbn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/46378822-779f-4f06-be22-6f1d4241f8dbn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42759506-d66e-4054-a8c1-e667fea97a16n%40googlegroups.com.

