I have a Django template I am trying to run with my own JS code.
So I extended the admin template login in my /templates folder of my app.
However, I can confirm the script is there if I go to: http://localhost:8000/static/admin.js
But in the source and console log never appear. I don't ever see my script tag either.
This is my dir structure:
[![directory structure ][1]][1]
Here's my template code:
{% extends "admin/login.html" %}
{% load static %}
{% block content %}
<h2> hello world! </h2>
<p>{% static 'admin.js' %}<p>
{% endblock %}
<script src="{% static 'admin.js' %}"></script>
My settings do have APP_DIRS set to true as well so it should see the template and it does but doesn't put in my script tag.