Adding JavaScript to Our Django Template We can add JavaScript to our template using an inline <script> tag or an external JavaScript file . Let’s create a app. js file, put it in a js folder that you need to create in the static folder of your application.