Commit 5a47c7e6 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Use cache-busted staticfiles storage

parent 4ae8812f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
from os import environ
from os.path import dirname, join
from ..util.load_settings import *

@@ -73,9 +74,15 @@ STATIC_URL = '/static/'
MEDIA_URL = '/media/'
ZINNIA_UPLOAD_TO = 'blog'

STATIC_ROOT = environ.get('STATIC_ROOT', '/tmp/django/static')
STATICFILES_DIRS = (
	join(PACKAGE_DIR, 'static'),
)
STATICFILES_FINDERS = (
	'django.contrib.staticfiles.finders.FileSystemFinder',
	'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'

TEMPLATES = [
	{