A

Admin • 833.24K Points
Coach

Q. How do you access static files in Django templates?

  • (A) {% static 'file.css' %}
  • (B) {% media 'file.css' %}
  • (C) {% load 'file.css' %}
  • (D) {% css 'file.css' %}
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

The static template tag is used to include static files like CSS or JS.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.