New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Deprecated function call breaking manage.py collectstatic --noinput
#310
Comments
Figured a way to resolve this issue. My containerized application installs a number of additional libraries, one of them being This library has an implicit constraint defined as I added a constraint to my pip install limiting Django version at <3.0 for now.
|
I plan to update the project to use Django 3 soon. So the above exception might become a problem again. Just tried to reproduce the problem, but no luck so far. I installed Django==3.0.0 and ran In what order did you install the libraries? |
Ack
First then In the first step I observed that Django 2.2.8 is installed as expected. However, in the second step it gets upgraded to Django 3.0. Let me know if you are still not able to reproduce the issue. |
You didn't supply |
Still haven't managed to reproduce it. There's this bit in the traceback you posted:
My hunch is that you have both Django 2.x and Django 3 intalled in different locations, and these are somehow getting mixed up. If you use virtualenv, maybe you have Django installed both globally and inside a virtualenv? I've also sometimes had to manually remove outdated .pyc files – but if pip installation goes cleanly, pip should have taken care of that I think. |
My app is containerized so these steps are taking place during the build process. As I mentioned earlier, when I run |
Could you share the Dockerfile (with any sensitive or unrelated bits stripped out) you are using for building the container? |
no I did not. django install:
django-auth-ldap install:
|
Sure will do in a few. |
I could reproduce it:
|
thanks @SuperSandro2000 |
@SuperSandro2000 I ran the same commands. Here's the output of pip3 commands:
Installing django-auth-ldap didn't trigger a Django update for me. I'm probably missing something obvious but not sure what it is... |
You are right. Can't read the output properly. |
It seems like django deprecated
admin_static
which is causing the following exception when runningmanage.py collectstatic --noinput
command.Is there a way to resolve this exception??
Some posts suggest uninstalling and reinstalling django which I tried with no luck.
Reference: https://django.readthedocs.io/en/2.2.x/releases/2.1.html#id2
The text was updated successfully, but these errors were encountered: