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/CAK4qSCdLatngJ9i0L3_FpQr7A8qEuQCRU_Fkvu0_2PNA8MvZ_w%40mail.gmail.com.

Reply via email to