Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
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
OpenEdx
django-pipeline
Commits
dd77612e
Commit
dd77612e
authored
Dec 11, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make it work with non-contrib version of staticfiles
parent
de5ffb72
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
pipeline/finders.py
+4
-1
pipeline/storage.py
+6
-2
pipeline/templatetags/compressed.py
+4
-1
No files found.
pipeline/finders.py
View file @
dd77612e
from
django.contrib.staticfiles.finders
import
BaseStorageFinder
try
:
from
django.contrib.staticfiles.finders
import
BaseStorageFinder
except
ImportError
:
from
staticfiles.finders
import
BaseStorageFinder
from
pipeline.storage
import
PipelineStorage
...
...
pipeline/storage.py
View file @
dd77612e
from
django.contrib.staticfiles
import
finders
from
django.contrib.staticfiles.storage
import
CachedStaticFilesStorage
,
StaticFilesStorage
try
:
from
django.contrib.staticfiles
import
finders
from
django.contrib.staticfiles.storage
import
CachedStaticFilesStorage
,
StaticFilesStorage
except
ImportError
:
from
staticfiles
import
finders
from
staticfiles.storage
import
CachedStaticFilesStorage
,
StaticFilesStorage
from
django.core.exceptions
import
ImproperlyConfigured
from
django.core.files.storage
import
get_storage_class
from
django.utils.functional
import
LazyObject
...
...
pipeline/templatetags/compressed.py
View file @
dd77612e
try
:
from
django.contrib.staticfiles.storage
import
staticfiles_storage
except
ImportError
:
from
staticfiles.storage
import
staticfiles_storage
from
django
import
template
from
django.contrib.staticfiles.storage
import
staticfiles_storage
from
django.template.loader
import
render_to_string
from
pipeline.conf
import
settings
...
...
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