|
Usage
Describes how to use django-compress when it is installed and configured
django-compress is no longer maintainedPlease consider switching to [django-pipeline http://django-pipeline.readthedocs.org/]! This page is kept for historical reasons. Automated generationIf COMPRESS and COMPRESS_AUTO is enabled (True), the source files will be automatically updated, and re-generated IF NEEDED when invoked from the templatetags. The last modified time of the files will be compared, and if any of the source-files is newer than the output-file, the file will be re-generated. Management commandYou can update and force updates of the compressed file(s) with the management command “synccompress”. This makes it possible to keep the files updated manually. The command is ./manage.py synccompress (assuming you are in you project-folder that contains manage.py). To force all files to be re-generated, use the argument --force (e.g. ./manage.py synccompress --force) Templatetagsdjango-compress includes two template tags: compressed_css and compressed_js, in a template library called compressed They are used to output the <link> and <script>-tags for the specified CSS/JavaScript-groups (as specified in the settings). The first argument must be the name of the CSS/JavaScript group. The templatetags will either output the source filenames or the compressed filenames, depending on the COMPRESS setting, if you do not specify the COMPRESS setting, the source files will be used in DEBUG-mode, and compressed files in non-DEBUG-mode. ExampleIf you have specified the CSS-groups “my_screen_css” and “my_print_css” and a JavaScript-group with the name “my_scripts”, you would use the following code to output them all: {% load compressed %}
{% compressed_css 'my_screen_css' %}
{% compressed_css 'my_print_css' %}
{% compressed_js 'my_scripts' %}Far future ExpiresFar future Expires can be used with the bump_filename-option, see the FarFutureExpires page for more information. |
var searchData; var searchLimit = 0; var searchCount = 0; var searchQ = ""; var toogleDivs = new Array();
function StartSearch?() {
}
function SetSearchCounter?(xmlResponse) {
}function doPagerAjax() {
}function pagerNext() {
}
function pagerPrevious() {
}function pagerFirst() {
}function pagerLast() {
}function FillData?(xmlResponse) {
}function showTraceDialog(id) {
}function showInfo(id) {
}
function getTimeData(xmlResponse) {
}function gnc(x) {
}function clearTimeData() {
}
function getXmlNodeFromSearchDataById(id) {
function getNodeValue(obj,tag) {
}What the hell was that?
That guy apparently thought this box was the JS compressor, lolz
hahaha
This is working great for my JS, but it seems to not do anything for the CSS. Actually I take that back, it's doing something: it creates my aggregated, minified, version file name. But there is nothing inside the file.
Any ideas?