When trying to link CSS in my HTML while running a Django server, I encountered an issue. The problem arises when using backslashes (\) on Windows and forward slashes (/) on Linux.
Is there a recommended way to adjust the path in base.html according to the current operating system?
For instance, on Windows it should be:
<link rel="stylesheet" href="{% static "\style.css" %}"/>
^
Whereas on Linux:
<link rel="stylesheet" href="{% static "/style.css" %}"/>
^