jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.48k stars 205 forks source link

installation of dj-database-url, upgrades Django version #191

Closed guoard closed 1 year ago

guoard commented 1 year ago

How to reproduce the problem:

if install dj-database-url package after Django==3.2.16, it uninstall existing installation of Django 3.2 and install Django 4.1

pip installs Django==3.2

pip install dj-database-url==1.0.0
Collecting dj-database-url
  Downloading dj_database_url-1.0.0-py3-none-any.whl (6.6 kB)
Collecting Django>3.2
  Using cached Django-4.1.3-py3-none-any.whl (8.1 MB)
Requirement already satisfied: asgiref<4,>=3.5.2 in ./venv/lib/python3.10/site-packages (from Django>3.2->dj-database-url) (3.5.2)
Requirement already satisfied: sqlparse>=0.2.2 in ./venv/lib/python3.10/site-packages (from Django>3.2->dj-database-url) (0.4.3)
Installing collected packages: Django, dj-database-url
  Attempting uninstall: Django
    Found existing installation: Django 3.2
    Uninstalling Django-3.2:
      Successfully uninstalled Django-3.2
Successfully installed Django-4.1.3 dj-database-url-1.0.0

It seems we don't have such problem in Django==3.2.12

mattseymour commented 1 year ago

This has been fixed in the 1.1.0 release. Which will be accessible on Pypi in the next few minutes. Sorry for the inconvenience.