just use the -U
or --upgrade
option to replace the original package in your venv with your custom version:
cd myapp && venv/bin/pip install -U git+https://github.com/jcomeauictx/django-crispy-forms.git
then in your requirements.txt replace the line
django-crispy-forms==1.4.0
with
git+https://github.com/jcomeauictx/django-crispy-forms.git
when you push to your heroku instance, you should see something like:
-----> Deleting 1 files matching .slugignore patterns.
-----> Python app detected
-----> Uninstalling stale dependencies
Uninstalling django-crispy-forms-1.4.0:
Successfully uninstalled django-crispy-forms-1.4.0
-----> Installing dependencies with pip
Collecting git+https://github.com/jcomeauictx/django-crispy-forms.git (from -r requirements.txt (line 6))
Cloning https://github.com/jcomeauictx/django-crispy-forms.git to /tmp/pip-AlSPnZ-build
Installing collected packages: django-crispy-forms
Running setup.py install for django-crispy-forms
Successfully installed django-crispy-forms-1.5.0