32👍
To avoid having it in requirements.txt everytime you do a freeze, remove it from your virtual environment with pip uninstall pkg-resources==0.0.0
- [Django]-Can I use Django F() objects with string concatenation?
- [Django]-How to TRUNCATE TABLE using Django's ORM?
- [Django]-How to run this code in django template
5👍
Remove pkg-resources==0.0.0
from requirements.txt
if you wish to avoid the problem next time you do a freeze, use pip uninstall pkg-resources==0.0.0
- [Django]-Django REST Framework – Separate permissions per methods
- [Django]-Django – why is the request.POST object immutable?
- [Django]-Django Queryset with year(date) = '2010'
1👍
cat requirements.txt | grep --invert-match pkg-resources | xargs -n 1 pip install
refer to the link for a more detailed write-up:
https://code-specialist.com/python/pkg-resources
- [Django]-How to get request object in django unit testing?
- [Django]-Modulus % in Django template
- [Django]-How to get a favicon to show up in my django app?
0👍
It appears Heroku CLI is using dependencies from a different local branch.
If you are running:
$ git push origin master
to deploy your application on Heroku, ensure that locally you are switched to master branch.
- [Django]-Django: return string from view
- [Django]-How does the get_or_create function in Django return two values?
- [Django]-Split views.py in several files
Source:stackexchange.com