Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

79
Views
Django Overriden Admin Template not importing JS

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!