Message ID | 20120507034711.18134.96733.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_server/settings/common.py' --- lava_server/settings/common.py 2012-05-07 02:58:11 +0000 +++ lava_server/settings/common.py 2012-05-07 03:45:39 +0000 @@ -69,10 +69,14 @@ "static", ) +import django + STATICFILES_PREPEND_LABEL_APPS = [ - "django.contrib.admin", ] +if django.VERSION < (1, 4): + STATICFILES_PREPEND_LABEL_APPS.append("django.contrib.admin") + # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/"