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

332
Views
How put css on django?

I have a big problem.Django doesn't recognize my css files. PHG

My css file is located in polls, but Django won't recognize it as a static file

My home.html

<link rel="stylesheet" type="text/css" href="home.css">

<title>121212</title>
<body>
    <div id="1212">
        <li class="fafa">12112</li>
    </div>
</body> 

my settings.py

STATIC_URL = '/static/'
STATIC_DIRS = [os.path.join(BASE_DIR, "static"),]
STATIC_ROOT = os.path.join(BASE_DIR, 'static')```
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It is a very SMALL problem, Mr XD.

In your template: {% load static %}

And then: <link href="{% static 'home.css' %}" rel="stylesheet">

over 4 years ago · Santiago Trujillo 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!