Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
dbcd1bf4
Commit
dbcd1bf4
authored
Sep 08, 2015
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use django.contrib.staticfiles instead of django-staticfiles.
TNL-3137
parent
130bbd79
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
33 additions
and
51 deletions
+33
-51
cms/envs/bok_choy.py
+1
-1
cms/envs/common.py
+3
-3
cms/envs/devstack.py
+2
-2
cms/envs/devstack_optimized.py
+1
-1
cms/envs/test_static_optimized.py
+2
-2
common/djangoapps/pipeline_js/views.py
+1
-1
common/djangoapps/pipeline_mako/templates/static_content.html
+1
-1
common/djangoapps/static_replace/__init__.py
+2
-2
common/djangoapps/terrain/browser.py
+0
-17
docs/en_us/platform_api/source/conf.py
+2
-2
lms/djangoapps/branding/__init__.py
+1
-1
lms/djangoapps/branding/api.py
+1
-1
lms/djangoapps/branding/views.py
+1
-1
lms/djangoapps/courseware/tests/test_comp_theming.py
+1
-1
lms/djangoapps/verify_student/views.py
+1
-1
lms/envs/bok_choy.py
+1
-1
lms/envs/common.py
+3
-3
lms/envs/devstack.py
+2
-2
lms/envs/devstack_optimized.py
+1
-1
lms/envs/test_static_optimized.py
+2
-2
openedx/core/djangoapps/credit/email_utils.py
+1
-1
openedx/core/djangoapps/user_api/accounts/image_helpers.py
+1
-1
requirements/edx/github.txt
+2
-3
No files found.
cms/envs/bok_choy.py
View file @
dbcd1bf4
...
...
@@ -62,7 +62,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"
/
"cms"
)
.
abspath
(),
...
...
cms/envs/common.py
View file @
dbcd1bf4
...
...
@@ -466,8 +466,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'
,
]
...
...
@@ -742,7 +742,7 @@ INSTALLED_APPS = (
# For asset pipelining
'edxmako'
,
'pipeline'
,
'staticfiles'
,
'
django.contrib.
staticfiles'
,
'static_replace'
,
'require'
,
...
...
cms/envs/devstack.py
View file @
dbcd1bf4
...
...
@@ -39,8 +39,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'
,
]
############################# ADVANCED COMPONENTS #############################
...
...
cms/envs/devstack_optimized.py
View file @
dbcd1bf4
...
...
@@ -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"
/
"cms"
)
.
abspath
(),
...
...
cms/envs/test_static_optimized.py
View file @
dbcd1bf4
...
...
@@ -28,8 +28,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
...
...
common/djangoapps/pipeline_js/views.py
View file @
dbcd1bf4
...
...
@@ -4,7 +4,7 @@ Views for returning XModule JS (used by requirejs)
import
json
from
django.conf
import
settings
from
django.http
import
HttpResponse
from
staticfiles.storage
import
staticfiles_storage
from
django.contrib.
staticfiles.storage
import
staticfiles_storage
from
edxmako.shortcuts
import
render_to_response
...
...
common/djangoapps/pipeline_mako/templates/static_content.html
View file @
dbcd1bf4
<
%!
from
staticfiles
.
storage
import
staticfiles_storage
from
django
.
contrib
.
staticfiles
.
storage
import
staticfiles_storage
from
pipeline_mako
import
compressed_css
,
compressed_js
from
django
.
utils
.
translation
import
get_language_bidi
from
mako
.
exceptions
import
TemplateLookupException
...
...
common/djangoapps/static_replace/__init__.py
View file @
dbcd1bf4
import
logging
import
re
from
staticfiles.storage
import
staticfiles_storage
from
staticfiles
import
finders
from
django.contrib.
staticfiles.storage
import
staticfiles_storage
from
django.contrib.
staticfiles
import
finders
from
django.conf
import
settings
from
xmodule.modulestore.django
import
modulestore
...
...
common/djangoapps/terrain/browser.py
View file @
dbcd1bf4
...
...
@@ -19,23 +19,6 @@ from json import dumps
import
xmodule.modulestore.django
from
xmodule.contentstore.django
import
_CONTENTSTORE
# There is an import issue when using django-staticfiles with lettuce
# Lettuce assumes that we are using django.contrib.staticfiles,
# but the rest of the app assumes we are using django-staticfiles
# (in particular, django-pipeline and our mako implementation)
# To resolve this, we check whether staticfiles is installed,
# then redirect imports for django.contrib.staticfiles
# to use staticfiles.
try
:
import
staticfiles
import
staticfiles.handlers
except
ImportError
:
pass
else
:
import
sys
sys
.
modules
[
'django.contrib.staticfiles'
]
=
staticfiles
sys
.
modules
[
'django.contrib.staticfiles.handlers'
]
=
staticfiles
.
handlers
LOGGER
=
getLogger
(
__name__
)
LOGGER
.
info
(
"Loading the lettuce acceptance testing terrain file..."
)
...
...
docs/en_us/platform_api/source/conf.py
View file @
dbcd1bf4
...
...
@@ -84,9 +84,9 @@ MOCK_MODULES = [
'ratelimitbackend'
,
'analytics'
,
'courseware.courses'
,
'staticfiles'
,
'
django.contrib.
staticfiles'
,
'storage'
,
'staticfiles.storage'
,
'
django.contrib.
staticfiles.storage'
,
'content'
,
'xmodule.contentstore'
,
'xmodule.contentstore.content'
,
...
...
lms/djangoapps/branding/__init__.py
View file @
dbcd1bf4
...
...
@@ -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
():
...
...
lms/djangoapps/branding/api.py
View file @
dbcd1bf4
...
...
@@ -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
...
...
lms/djangoapps/branding/views.py
View file @
dbcd1bf4
...
...
@@ -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
...
...
lms/djangoapps/courseware/tests/test_comp_theming.py
View file @
dbcd1bf4
...
...
@@ -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
...
...
lms/djangoapps/verify_student/views.py
View file @
dbcd1bf4
...
...
@@ -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__
)
...
...
lms/envs/bok_choy.py
View file @
dbcd1bf4
...
...
@@ -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
(),
...
...
lms/envs/common.py
View file @
dbcd1bf4
...
...
@@ -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
...
...
lms/envs/devstack.py
View file @
dbcd1bf4
...
...
@@ -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
...
...
lms/envs/devstack_optimized.py
View file @
dbcd1bf4
...
...
@@ -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
(),
...
...
lms/envs/test_static_optimized.py
View file @
dbcd1bf4
...
...
@@ -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
...
...
openedx/core/djangoapps/credit/email_utils.py
View file @
dbcd1bf4
...
...
@@ -12,7 +12,7 @@ import HTMLParser
from
django.conf
import
settings
from
django.contrib.auth.models
import
User
from
staticfiles
import
finders
from
django.contrib.
staticfiles
import
finders
from
django.core.cache
import
cache
from
django.core.mail
import
EmailMessage
from
django.core.urlresolvers
import
reverse
...
...
openedx/core/djangoapps/user_api/accounts/image_helpers.py
View file @
dbcd1bf4
...
...
@@ -6,7 +6,7 @@ import hashlib
from
django.conf
import
settings
from
django.core.exceptions
import
ObjectDoesNotExist
from
django.core.files.storage
import
get_storage_class
from
staticfiles.storage
import
staticfiles_storage
from
django.contrib.
staticfiles.storage
import
staticfiles_storage
from
microsite_configuration
import
microsite
...
...
requirements/edx/github.txt
View file @
dbcd1bf4
...
...
@@ -8,8 +8,7 @@
# Python libraries to install directly from github
# Third-party:
git+https://github.com/edx/django-staticfiles.git@031bdeaea85798b8c284e2a09977df3e32d06b5d#egg=django-staticfiles==1.2.1.0003
-e git+https://github.com/edx/django-pipeline.git@1.5.3+importfixes#egg=django-pipeline
-e git+https://github.com/cyberdelia/django-pipeline.git@1.5.3#egg=django-pipeline
-e git+https://github.com/edx/django-wiki.git@cd0b2b31997afccde519fe5b3365e61a9edb143f#egg=django-wiki
-e git+https://github.com/edx/django-oauth2-provider.git@0.2.7-fork-edx-5#egg=django-oauth2-provider
-e git+https://github.com/edx/django-rest-framework-oauth.git@f0b503fda8c254a38f97fef802ded4f5fe367f7a#egg=djangorestframework-oauth
...
...
@@ -41,7 +40,7 @@ git+https://github.com/edx/rfc6266.git@v0.0.5-edx#egg=rfc6266==0.0.5-edx
-e git+https://github.com/edx/event-tracking.git@0.2.0#egg=event-tracking
-e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock
-e git+https://github.com/edx/edx-ora2.git@release-2015-09-
16T15.28
#egg=edx-ora2
-e git+https://github.com/edx/edx-ora2.git@release-2015-09-
22T15.43
#egg=edx-ora2
-e git+https://github.com/edx/edx-submissions.git@0.1.0#egg=edx-submissions
-e git+https://github.com/edx/opaque-keys.git@27dc382ea587483b1e3889a3d19cbd90b9023a06#egg=opaque-keys
git+https://github.com/edx/ease.git@release-2015-07-14#egg=ease==0.1.3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment