In my base template:
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/
main.css?v=CSS_CHECKSUM" />
In my ant build script:
<checksum file="media/css/main.css" property="css_checksum"/> /*
checksum is built into ant on most os's, so it's easier than using svn
*/
<property name="base_template" location="${dist}/templates/includes/
base.html"/>
<replace file="${base_template}" value="${css_checksum}">
<replacetoken>CSS_CHECKSUM</replacetoken>
</replace>
On Jan 16, 6:11 pm, Andrew <[EMAIL PROTECTED]> wrote:
> There are a bunch of articles about versioning your CSS/JS so you can
> set an infinite expires header; most of them revolve around some PHP
> code that takes either an SVN revision or unix timecode and munges the
> include header, like:
>
> <script type="text/javascript" src="/scripts/skeleton.v288734.js"></
> script>
>
> So. I'm not thrilled about throwing some PHP into the mix; surely
> someone is doing this on another django production site? What are your
> solutions to this problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---