rentgeeen rentgeeen - 7 months ago 21
Python Question

Proper install dependency by requirements.txt or how to properly install dependency which was edited

I am using this dependency on my django site.

Problem is on django 1.9 there is a fix, and the repository was forked to someone else.

This is the repository

And this is the fix

On both there is manual how to install it

pip install django-bleach

But that is the same I would end up with the same error. I would like to install the fixed version. I can edit it manually on my localhost - it is not proper software engineering, so I would like to know proper way. But this is not the problem, problem is how to install it on heroku and I do not want to edit the dependency with CLI on heroku.

Can you help me what would be the proper way to install this fix on heroku and my localhost from that repository? What I need to put in the requirements.txt that it would install the correct fix?


You can put repository urls in requirements.txt like so:


or be more specific and specify the branch:


Pip documentation.