Tuesday, February 25, 2014

Override grappelli js files

Hi,

I'm using grappelli and I have two files in it I need to modify:

admin/js/SelectBox.js  admin/js/SelectFilter2.js

I thought it would be a good idea to put it into my app static directory:

my_app/static/admin/js/SelectBox.js  my_app/static/admin/js/SelectFilter2.js

But whenever I try ./manage.py collectstatic files from my_app are overrided by original files from grappelli, however I need it vice versa.

I need just to add several strings in this files into existing functions, so I can't handle it within a new js files and include into Media class ( from my point of view ).

Is there any way to override grappelli files?

 
wbr,
rush.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/383141393359498%40web3m.yandex.ru.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment