leukeleu/django-mptt-admin — pull request #3 by alex2 (2013-04-30 13:46:41+00:00)
Title: Use static templatetag for CDN-compatible file paths

Hi,

This small tweak adds CDN-compatibility to your django-mptt-admin project by using the ```static``` templatetag to dynamically build the paths to the static files based on the StaticFilesStorage backend defined in the project's settings.py.

Benefits of this are that CDN backends will work with the static assets, as will the extremely useful CachedStaticFilesStorage backend.

Downside is that it means compatibility is restricted to Django 1.4 or above. If you're keen to maintain 1.3.7 compatibility, I propose putting references to the staticfiles into two separate include files, which can then be conditionally included depending on django.VERSION[1]. I'm happy to make this further change if you'd like?

Cheers