[Fixed]-Django creating reusable app that loads specific js

1👍

Just put <script ...> in a template in your reusable app, and include that template in any app you want:

{% include "reusable_app/js_header.html" %}

The reusable app needs to be listed in INSTALLED_APPS to find the templates.

👤viron

Leave a comment