django-tailwind
django-tailwind copied to clipboard
When install django-tailwind the django version is change
I use django 3.2 for my project, and when i try to install django-tailwind the version of django is change to 4.1 version. Not very important or dangerous for solving it. just reinstall again django 3.2. But if can the django version shouldn't force to change when install it
pytest-django depends on Django 3.2.14 or newer: https://github.com/timonweb/django-tailwind/blob/37b81f631edddac04844413bb5635a1c73e5af30/pyproject.toml#L29
If you had an older version of Django 3.2, then Pip would have to upgrade it, and probably just pick the most recent version available.
I've done a quick experiment to install pytest-django on top of the latest Django 3.2 (which is 3.2.15) and it did not try to upgrade Django:
% pip install 'django<4'
Collecting django<4
Downloading Django-3.2.15-py3-none-any.whl (7.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 16.6 MB/s eta 0:00:00
Collecting sqlparse>=0.2.2
Using cached sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting asgiref<4,>=3.3.2
Using cached asgiref-3.5.2-py3-none-any.whl (22 kB)
Collecting pytz
Using cached pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
Installing collected packages: pytz, sqlparse, asgiref, django
Successfully installed asgiref-3.5.2 django-3.2.15 pytz-2022.2.1 sqlparse-0.4.2
% pip install django-tailwind
Collecting django-tailwind
Using cached django_tailwind-3.4.0-py3-none-any.whl (12 kB)
Requirement already satisfied: django>=3.2.14 in ./venv/lib/python3.10/site-packages (from django-tailwind) (3.2.15)
Collecting django-browser-reload<2.0.0,>=1.6.0
Using cached django_browser_reload-1.6.0-py3-none-any.whl (11 kB)
Requirement already satisfied: pytz in ./venv/lib/python3.10/site-packages (from django>=3.2.14->django-tailwind) (2022.2.1)
Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/python3.10/site-packages (from django>=3.2.14->django-tailwind) (0.4.2)
Requirement already satisfied: asgiref<4,>=3.3.2 in ./venv/lib/python3.10/site-packages (from django>=3.2.14->django-tailwind) (3.5.2)
Installing collected packages: django-browser-reload, django-tailwind
Successfully installed django-browser-reload-1.6.0 django-tailwind-3.4.0
% pip freeze
asgiref==3.5.2
Django==3.2.15
django-browser-reload==1.6.0
django-tailwind==3.4.0
pytz==2022.2.1
sqlparse==0.4.2
okay thanks