datatracker/ietf/storage.py
Henrik Levkowetz 3a0a36b1e1 Changed the location of a lot of static files.
- Legacy-Id: 9891
2015-07-26 18:16:54 +00:00

8 lines
340 B
Python

from django.core.files.storage import FileSystemStorage
from django.contrib.staticfiles.finders import BaseStorageFinder
from django.conf import settings
if settings.SERVER_MODE != 'production':
class CdnStorageFinder(BaseStorageFinder):
storage = FileSystemStorage(location=settings.STATIC_ROOT, base_url=settings.STATIC_URL)