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

197
Views
Problem with js files (jQuery, bootstrap and bopper) in Django framework

I'm newbie in the Amazing world, World of programming and developing web apps, everyday I have new challenge, every time try to figure out the problems and solve them. Today I facing an amazing problem which is when I write this code in Html page in Django framework:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>

my project work clear without any problem (exactly I work on Collapse Button dropdown one) when I use this scripts with URL links and using internet, my dropdown Button work normal but when I use

    <script src="{% static 'js/jquery.min.js' %}"></script> 

or

<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"</script> 

My dropdown button never working, even the terminal didn't give an error.

Why this problem, and how to solve it?

Note: I worked on both browsers : chrome and Edge microsoft, in chrome work perfect, only in Edge, the dropdown button didn't work.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There may be an issue with how your Django app is configured. Please walk through the following Django documentation and confirm that all required steps are completed in order to successfully serve static files from your Django app.

Documentation: https://docs.djangoproject.com/en/3.2/howto/static-files/.

Also, please note that you will need to include the following tag in your template:

{% load static %}

The above tag must be included before the below tag within your template in order for it to work:

<script src="{% static 'js/jquery.min.js' %}"></script>

about 4 years ago · Juan Pablo Isaza Report
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!