mercurial - Django busting /static content -


what best stage in django append file timestamp urls start /static/?

example urls:

http://mydomain.com/static/css/... http://mydomain.com/static/img/... http://mydomain.com/static/js/... 

is there app , work mercurial vcs?

you can try django-compressor

this app combines several css/js files 1 file. , generates unique name file. example:

{% load compress %}  {% compress css %} <link rel="stylesheet" href="/static/css/one.css" type="text/css" charset="utf-8"> <style type="text/css">p { border:5px solid green;}</style> <link rel="stylesheet" href="/static/css/two.css" type="text/css" charset="utf-8"> {% endcompress %} 

result like:

<link rel="stylesheet" href="/static/cache/css/f7c661b7a124.css" type="text/css" charset="utf-8"> 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -