Use django.contrib.staticfiles instead of django-staticfiles.
TNL-3137
This commit is contained in:
@@ -4,7 +4,7 @@ from django.conf import settings
|
||||
|
||||
from opaque_keys.edx.locations import SlashSeparatedCourseKey
|
||||
from microsite_configuration import microsite
|
||||
from staticfiles.storage import staticfiles_storage
|
||||
from django.contrib.staticfiles.storage import staticfiles_storage
|
||||
|
||||
|
||||
def get_visible_courses():
|
||||
|
||||
@@ -17,7 +17,7 @@ import urlparse
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
from staticfiles.storage import staticfiles_storage
|
||||
from django.contrib.staticfiles.storage import staticfiles_storage
|
||||
|
||||
from microsite_configuration import microsite
|
||||
from edxmako.shortcuts import marketing_link
|
||||
|
||||
@@ -10,7 +10,7 @@ from django.http import HttpResponse, Http404
|
||||
from django.utils import translation
|
||||
from django.shortcuts import redirect
|
||||
from django.views.decorators.csrf import ensure_csrf_cookie
|
||||
from staticfiles.storage import staticfiles_storage
|
||||
from django.contrib.staticfiles.storage import staticfiles_storage
|
||||
|
||||
from edxmako.shortcuts import render_to_response
|
||||
import student.views
|
||||
|
||||
@@ -5,7 +5,7 @@ from django.conf import settings
|
||||
from django.test import TestCase
|
||||
|
||||
from path import path # pylint: disable=no-name-in-module
|
||||
import staticfiles
|
||||
from django.contrib import staticfiles
|
||||
|
||||
from openedx.core.djangoapps.theming.test_util import with_comp_theme
|
||||
from openedx.core.lib.tempdir import mkdtemp_clean
|
||||
|
||||
@@ -57,7 +57,7 @@ from verify_student.image import decode_image_data, InvalidImageData
|
||||
from util.json_request import JsonResponse
|
||||
from util.date_utils import get_default_time_display
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from staticfiles.storage import staticfiles_storage
|
||||
from django.contrib.staticfiles.storage import staticfiles_storage
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@@ -64,7 +64,7 @@ DEBUG = True
|
||||
# Note: optimized files for testing are generated with settings from test_static_optimized
|
||||
STATIC_URL = "/static/"
|
||||
STATICFILES_FINDERS = (
|
||||
'staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
)
|
||||
STATICFILES_DIRS = (
|
||||
(TEST_ROOT / "staticfiles" / "lms").abspath(),
|
||||
|
||||
@@ -1203,8 +1203,8 @@ STATICFILES_STORAGE = 'openedx.core.lib.django_require.staticstorage.OptimizedCa
|
||||
# List of finder classes that know how to find static files in various locations.
|
||||
# Note: the pipeline finder is included to be able to discover optimized files
|
||||
STATICFILES_FINDERS = [
|
||||
'staticfiles.finders.FileSystemFinder',
|
||||
'staticfiles.finders.AppDirectoriesFinder',
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
'pipeline.finders.PipelineFinder',
|
||||
]
|
||||
|
||||
@@ -1813,7 +1813,7 @@ INSTALLED_APPS = (
|
||||
# For asset pipelining
|
||||
'edxmako',
|
||||
'pipeline',
|
||||
'staticfiles',
|
||||
'django.contrib.staticfiles',
|
||||
'static_replace',
|
||||
|
||||
# Theming
|
||||
|
||||
@@ -91,8 +91,8 @@ STATICFILES_STORAGE = 'pipeline.storage.NonPackagingPipelineStorage'
|
||||
|
||||
# Revert to the default set of finders as we don't want the production pipeline
|
||||
STATICFILES_FINDERS = [
|
||||
'staticfiles.finders.FileSystemFinder',
|
||||
'staticfiles.finders.AppDirectoriesFinder',
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
]
|
||||
|
||||
# Disable JavaScript compression in development
|
||||
|
||||
@@ -36,7 +36,7 @@ REQUIRE_DEBUG = False
|
||||
# Note: optimized files for testing are generated with settings from test_static_optimized
|
||||
STATIC_URL = "/static/"
|
||||
STATICFILES_FINDERS = (
|
||||
'staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
)
|
||||
STATICFILES_DIRS = (
|
||||
(TEST_ROOT / "staticfiles" / "lms").abspath(),
|
||||
|
||||
@@ -39,8 +39,8 @@ STATICFILES_STORAGE = 'openedx.core.lib.django_require.staticstorage.OptimizedCa
|
||||
|
||||
# Revert to the default set of finders as we don't want to dynamically pick up files from the pipeline
|
||||
STATICFILES_FINDERS = [
|
||||
'staticfiles.finders.FileSystemFinder',
|
||||
'staticfiles.finders.AppDirectoriesFinder',
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
]
|
||||
|
||||
# Redirect to the test_root folder within the repo
|
||||
|
||||
Reference in New Issue
Block a user