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
7a76d26b
Commit
7a76d26b
authored
May 01, 2008
by
andreas.pelme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
https://django-compress.googlecode.com/svn/trunk@8
98d35234-f74b-0410-9e22-51d878bdf110
parent
b19ed0f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
conf/settings.py
+1
-0
management/commands/synccompress.py
+5
-5
No files found.
conf/settings.py
View file @
7a76d26b
from
django.conf
import
settings
COMPRESS
=
getattr
(
settings
,
'COMPRESS'
,
not
settings
.
DEBUG
)
COMRESS_AUTO
=
getattr
(
settings
,
'COMPRESS_AUTH'
,
True
)
COMPRESS_CSS_FILTERS
=
getattr
(
settings
,
'COMPRESS_CSS_FILTERS'
,
(
'compress.filters.csstidy.CSSTidyFilter'
,
))
COMPRESS_JS_FILTERS
=
getattr
(
settings
,
'COMPRESS_JS_FILTERS'
,
(
'compress.filters.jsmin.JSMinFilter'
,))
COMPRESS_CSS
=
getattr
(
settings
,
'COMPRESS_CSS'
,
{})
...
...
management/commands/synccompress.py
View file @
7a76d26b
from
django.core.management.base
import
Base
Command
from
django.core.management.base
import
NoArgs
Command
from
optparse
import
make_option
from
django.conf
import
settings
class
Command
(
Base
Command
):
option_list
=
Base
Command
.
option_list
+
(
class
Command
(
NoArgs
Command
):
option_list
=
NoArgs
Command
.
option_list
+
(
make_option
(
'--force'
,
action
=
'store_true'
,
default
=
False
,
help
=
'Force update of all files, even if the source files are older than the current compressed file.'
),
make_option
(
'--verbosity'
,
action
=
'store'
,
dest
=
'verbosity'
,
default
=
'1'
,
type
=
'choice'
,
choices
=
[
'0'
,
'1'
,
'2'
],
help
=
'Verbosity level; 0=minimal output, 1=normal output, 2=all output'
),
)
help
=
'Updates and compresses CSS and JavsScript on-demand, with
no need to restart
Django'
help
=
'Updates and compresses CSS and JavsScript on-demand, with
out restarting
Django'
args
=
''
def
handle
(
self
,
**
options
):
def
handle
_noargs
(
self
,
**
options
):
force
=
options
.
get
(
'force'
,
False
)
verbosity
=
int
(
options
.
get
(
'verbosity'
,
1
))
...
...
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