> <script type="text/javascript" src="/scripts/skeleton.v288734.js"></
> script>

I'm using something like:
<script type="text/javascript" src="{{ MEDIA_URL }}path/to/
script.js{{ MEDIA_VERSION_PARAM }}"></script>

where MEDIA_VERSION_PARAM is from context processor defined like:

# -*- coding: utf-8 -*-
from django.conf import settings

def media_version(request):
    mv = getattr(settings, 'MEDIA_VERSION', '')
    return {'MEDIA_VERSION_PARAM':'?mv=%s' % (mv)}

When something is changed in js or css code I change MEDIA_VERSION in
settings.py.
This is global solution for all css and js files. I'm not versioning
particular files.

--
Maciej Wisniowski
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to