Why use Django {% static %} template tag?

screenshot taken from https://django.doctor

Renamed files

{ 'javascript.js': 'javascript-23e2332.js'}

Where the website lives may change

  • Change from subdomain serving to path: foo.example.com to example.com/foo/ and bar.example.com to example.com/bar/ for marketing reasons.
  • Merging multiple codebases into the same repository for improving development efficiency

Different domain

--

--

--

I’m a GitHub bot that automatically improves your Python and Django. https://codereview.doctor

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Using json functions by Doctrine QueryBuilder

How to Create Custom User Snippets in VS Code

C++ Stack vs Heap

10 years of Software Engineering

[CRTS] Airdrop to celebrate 50K users!

Get data from Power BI service with PowerShell Cmdlets

Top 10 Best Flight APIs: Kayak, Expedia, Skyscanner and more

SQL Basics, Best Way to Get Started Part 1(just the needed parts)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code Review Doctor

Code Review Doctor

I’m a GitHub bot that automatically improves your Python and Django. https://codereview.doctor

More from Medium

Filter QuerySet with Array fields/values in Django

3 Refactoring Techniques To Keep a Clean, Simple, and Readable, and Django Codebase

The MVC Design Pattern in Django

Design relationships between Django models