Replies: 2 comments
-
I expect you have confused yourself somehow: |
Beta Was this translation helpful? Give feedback.
-
@MalikRumi If you specifically want to downgrade to Django 4.0, the correct way is to do that: poetry add django==4.0.0. This command is sufficient to downgrade your Django version from 4.2 to 4.0. The command that you mentioned should also do the same, but I haven't tested that. |
Beta Was this translation helpful? Give feedback.
-
I recently discovered a conflict between Django 4.2 and my current project. I decided to downgrade to Django 4.0 until I can get that other issue fixed. However, I could not find a 'downgrade' command. I tried many variations on "poetry add Django@4.0" as shown in the docs but I ended up getting an upgrade to Django 4.2.6! I tried just removing it, thinking i could then install 4.0, but that got me "No dependencies to install or update". Finally, I edited the .toml file directly, ran "poetry update" as requested, and presto, my problem, vanished - for now. So my question is simply this: Was this the right or only way to do this, or did I miss an easier way in the docs? Where can I find this better way? Thx.
Beta Was this translation helpful? Give feedback.
All reactions