context = { 'menu_list': menu_list, 'date': datetime.datetime.now().strftime('%Y-%m-%d-%H:%M:%S'), } return render(request, 'index.html', context)
<link href="{% static 'css/custom.css' %}?v={{date}}" rel="stylesheet" type="text/css" id="app-style"/>
<link href="/static/css/custom.css?v=2023-01-19-09:43:21" rel="stylesheet" type="text/css" id="app-style">
%3A
-
'date': datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)