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
e9c392dd
Commit
e9c392dd
authored
Dec 08, 2013
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix manifest
parent
0087b9cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pipeline/manifest.py
+6
-4
No files found.
pipeline/manifest.py
View file @
e9c392dd
...
...
@@ -3,6 +3,7 @@ from __future__ import unicode_literals
import
os
from
django.contrib.staticfiles.finders
import
get_finders
from
django.contrib.staticfiles.storage
import
staticfiles_storage
from
pipeline.conf
import
settings
...
...
@@ -35,13 +36,14 @@ class PipelineManifest(Manifest):
if
settings
.
PIPELINE_ENABLED
:
for
package
in
self
.
packages
:
self
.
package_files
.
append
(
package
.
output_filename
)
yield
str
(
self
.
packager
.
individual_url
(
package
.
output_filename
))
path
=
package
.
output_filename
self
.
package_files
.
append
(
path
)
yield
staticfiles_storage
.
url
(
path
)
else
:
for
package
in
self
.
packages
:
for
path
in
self
.
packager
.
compile
(
package
.
paths
):
self
.
package_files
.
append
(
path
)
yield
st
r
(
self
.
packager
.
individual_url
(
path
)
)
yield
st
aticfiles_storage
.
url
(
path
)
for
finder
in
self
.
finders
:
for
path
,
storage
in
finder
.
list
(
ignore_patterns
):
...
...
@@ -54,4 +56,4 @@ class PipelineManifest(Manifest):
# Dont add any doubles
if
prefixed_path
not
in
self
.
package_files
:
self
.
package_files
.
append
(
prefixed_path
)
yield
st
r
(
self
.
packager
.
individual_url
(
prefixed_path
)
)
yield
st
aticfiles_storage
.
url
(
prefixed_path
)
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