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éasDen tis 21 mars 2023 kl 11:41 skrev Joao Frankmann <frankma...@gmail.com>:I've been using django for a while and today when starting a new project I noticed that when I run:
django-admin startproject mysiteThe settings.py generated file says:
Generated by 'django-admin startproject' using Django 2.2.19and 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 --versionwhich returns:
4.1.7Python 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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/46378822-779f-4f06-be22-6f1d4241f8dbn%40googlegroups.com.
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/42759506-d66e-4054-a8c1-e667fea97a16n%40googlegroups.com.
No comments:
Post a Comment