I'm preparing a package developed in-house to be delivered to a customer. During development in house, we've used copies of common JavaScript libraries (jquery, openlayers, underscore) in our code repository, and that works. However, in the delivered system, management feels (and I agree) that if we deliver our 'own copies' of these common libraries then we become responsible for them.
Consequently I'm trying to rework the system so that it serves these libraries from /usr/share/javascript, which is where the OS (Ubuntu) puts them. This works fine when the package is deployed with Apache; however it doesn't work when run from
python manage.py runserver
What do I need to add to my settings.py so that runserver will serve files from /usr/share/javascript on the URL
http://localhost:8000/javascript/
?
How do I ensure that those files are not collected by 'collectstatic'?
Thanks!