Compress resources
This commit is contained in:
1 parent
a2e7c595c1
commit
3727f1c14a
4 files changed
+14
-8
No files matched your search
@@ -7,3 +7,4 @@ uploads/[^.]*
|
|||||||
venv
|
venv
|
||||||
node_modules
|
node_modules
|
||||||
.idea
|
.idea
|
||||||
|
/CACHE
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
Django==1.6.5
|
Django>=1.6,<1.7
|
||||||
|
django-bootstrap-form==3.1
|
||||||
|
django-compressor==1.4
|
||||||
|
django-widget-tweaks==1.3
|
||||||
MySQL-python==1.2.5
|
MySQL-python==1.2.5
|
||||||
Pillow==2.5.1
|
Pillow==2.5.1
|
||||||
South==1.0
|
South==1.0
|
||||||
django-bootstrap-form==3.1
|
|
||||||
django-widget-tweaks==1.3
|
|
||||||
|
|
||||||
@@ -85,6 +85,7 @@ STATICFILES_DIRS = (
|
|||||||
STATICFILES_FINDERS = (
|
STATICFILES_FINDERS = (
|
||||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||||
|
'compressor.finders.CompressorFinder',
|
||||||
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -127,6 +128,7 @@ INSTALLED_APPS = (
|
|||||||
'widget_tweaks',
|
'widget_tweaks',
|
||||||
'south',
|
'south',
|
||||||
'bootstrapform',
|
'bootstrapform',
|
||||||
|
'compressor',
|
||||||
)
|
)
|
||||||
|
|
||||||
# A sample logging configuration. The only tangible logging
|
# A sample logging configuration. The only tangible logging
|
||||||
|
|||||||
+7
-4
@@ -1,13 +1,15 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
{% load compress %}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{%block title%}BBS{%endblock%}</title>
|
<title>{%block title%}BBS{%endblock%}</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="x-django-static-url" content="{{ STATIC_URL }}">
|
<meta name="x-django-static-url" content="{{ STATIC_URL }}">
|
||||||
|
{% compress css %}
|
||||||
<link rel="stylesheet" href="{{ STATIC_URL }}stylesheets/screen.css" type="text/css" media="screen, projection">
|
<link rel="stylesheet" href="{{ STATIC_URL }}stylesheets/screen.css" type="text/css" media="screen, projection">
|
||||||
{%block headinc %}
|
{% endcompress %}
|
||||||
{%endblock%}
|
{%block headinc %}{%endblock%}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header id="header">
|
<header id="header">
|
||||||
@@ -30,6 +32,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% compress js %}
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery-1.7.1.min.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery-1.7.1.min.js"></script>
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap/collapse.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap/collapse.js"></script>
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap/dropdown.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap/dropdown.js"></script>
|
||||||
@@ -39,7 +42,7 @@
|
|||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/highcharts.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/highcharts.js"></script>
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/underscore-min.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/underscore-min.js"></script>
|
||||||
<script type="text/javascript" src="{{ STATIC_URL }}js/app.js"></script>
|
<script type="text/javascript" src="{{ STATIC_URL }}js/app.js"></script>
|
||||||
{%block tailinc %}
|
{% endcompress %}
|
||||||
{%endblock%}
|
{%block tailinc %}{%endblock%}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user