0π
β
Ok I just found a solution :
setup.py
isnβt configured to take into account the folder /templatetags.
Just add, in the setup.py
, to the line packages=['django_bleach']
: 'django_bleach.templatetags'
, so it looks like this (thx to frog32 !):
...
packages=[
'django_bleach',
'django_bleach.templatetags'
],
...
If the package is not yours (like in my case), you need to fork it (usually on Bitbucket or GitHub), change the setup.py
in your repository. In the case you use Pip, you should configure your requirement.txt
to get the package from YOUR repository, here my example is :
(other packages)
...
django-bleach
...
becomes:
...
git+https://sebastien_worms@bitbucket.org/sebastien_worms/django-bleach.git
...
In my case I just have to run pip install -r requirement.txt
and Iβm done !
π€sebastien.worms
1π
you should add the package django_bleach.templatetags to packages
packages=[
'django_bleach',
'django_bleach.templatetags',
]
package_data is intended for non python files
π€frog32
- [Answer]-AttributeError when establishing a foreign key using the to_field option
- [Answer]-Can I call Django Manager Methods from AngularJS?
- [Answer]-Django Endless pagination
Source:stackexchange.com