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
|
||||
node_modules
|
||||
.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
|
||||
Pillow==2.5.1
|
||||
South==1.0
|
||||
django-bootstrap-form==3.1
|
||||
django-widget-tweaks==1.3
|
||||
|
||||
@@ -85,6 +85,7 @@ STATICFILES_DIRS = (
|
||||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
'compressor.finders.CompressorFinder',
|
||||
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
||||
)
|
||||
|
||||
@@ -127,6 +128,7 @@ INSTALLED_APPS = (
|
||||
'widget_tweaks',
|
||||
'south',
|
||||
'bootstrapform',
|
||||
'compressor',
|
||||
)
|
||||
|
||||
# A sample logging configuration. The only tangible logging
|
||||
|
||||
+7
-4
@@ -1,13 +1,15 @@
|
||||
<!doctype html>
|
||||
{% load compress %}
|
||||
<html>
|
||||
<head>
|
||||
<title>{%block title%}BBS{%endblock%}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<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">
|
||||
{%block headinc %}
|
||||
{%endblock%}
|
||||
{% endcompress %}
|
||||
{%block headinc %}{%endblock%}
|
||||
</head>
|
||||
<body>
|
||||
<header id="header">
|
||||
@@ -30,6 +32,7 @@
|
||||
</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/bootstrap/collapse.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/underscore-min.js"></script>
|
||||
<script type="text/javascript" src="{{ STATIC_URL }}js/app.js"></script>
|
||||
{%block tailinc %}
|
||||
{%endblock%}
|
||||
{% endcompress %}
|
||||
{%block tailinc %}{%endblock%}
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user