How to link CSS file to pdf.html file for Django

My PDF.html is not linking to any CSS file, I have tried the following:

Template PDF.HTML

{% load static %}  <!DOCTYPE html> <html lang="en">  <head> <meta charset="UTF-8"> <link href='{% static "css/bootstrap.min.css" %}' rel="stylesheet"> <!-- Material Design Bootstrap --> <link href='{% static "css/mdb.min.css" %}' rel="stylesheet"> <!-- Your custom styles (optional) --> <link href='{% static "css/style.min.css" %}' rel="stylesheet"> 

I am using the same CSS files for other templates as base.html which is working fine and linking to them but for this particular HTML it is not linking, so I am trying to find the reason for this issue

Here is the base.html

{% load static %}  <!DOCTYPE html> <html lang="en">  <head> -----------------------------------------------------  <link href='{% static "css/bootstrap.min.css" %}' rel="stylesheet"> <!-- Material Design Bootstrap --> <link href='{% static "css/mdb.min.css" %}' rel="stylesheet"> <!-- Your custom styles (optional) --> <link href='{% static "css/style.min.css" %}' rel="stylesheet"> 
Professor Asked on October 18, 2020 in Android langue.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.