File tree 4 files changed +14
-0
lines changed
4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 12
12
* .db
13
13
.livereload
14
14
* .swo
15
+ myimgat /static /CACHE
Original file line number Diff line number Diff line change 1
1
{% extends "base.html" %}
2
2
3
+ {% load compress %}
4
+
3
5
{% block head %}
4
6
{% block css %}
7
+ {% compress css %}
5
8
< link href ="{{ STATIC_URL }}wall/css/reset.css " rel ="stylesheet " type ="text/css " />
6
9
< link href ="{{ STATIC_URL }}wall/css/defaults.css " rel ="stylesheet " type ="text/css " />
7
10
< link href ="{{ STATIC_URL }}wall/css/header.css " rel ="stylesheet " type ="text/css " />
11
14
< link href ="{{ STATIC_URL }}wall/css/login-popin.css " rel ="stylesheet " type ="text/css " />
12
15
< link href ="{{ STATIC_URL }}wall/css/crop-popin.css " rel ="stylesheet " type ="text/css " />
13
16
< link href ="{{ STATIC_URL }}wall/css/wall.css " rel ="stylesheet " type ="text/css " />
17
+ {% endcompress %}
14
18
{% endblock %}
15
19
16
20
{% block open_graph %}
@@ -59,6 +63,7 @@ <h1>{% block header_logo %}myimg.at{% endblock %}</h1>
59
63
userAlbums : '/api/{username}.json'
60
64
} ;
61
65
</ script >
66
+ {% compress js %}
62
67
< script src ="{{ STATIC_URL }}wall/js/mootools-core-1.3.2-compat.js "> </ script >
63
68
< script src ="{{ STATIC_URL }}wall/js/mootools-more-1.3.2.1.js "> </ script >
64
69
< script src ="{{ STATIC_URL }}wall/js/wall.js "> </ script >
@@ -69,6 +74,7 @@ <h1>{% block header_logo %}myimg.at{% endblock %}</h1>
69
74
< script src ="{{ STATIC_URL }}wall/js/popin.js "> </ script >
70
75
< script src ="{{ STATIC_URL }}wall/js/crop-popin.js "> </ script >
71
76
< script src ="{{ STATIC_URL }}wall/js/init.js "> </ script >
77
+ {% endcompress %}
72
78
{% endblock %}
73
79
74
80
{% endblock %}
Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ pycrypto==2.3
14
14
python-openid==2.2.5
15
15
wsgiref==0.1.2
16
16
MySQL-python==1.2.3
17
+ django_compressor==0.9.2
18
+ BeautifulSoup==3.2.0
19
+ html5lib==0.90
Original file line number Diff line number Diff line change 92
92
'django.contrib.staticfiles.finders.FileSystemFinder' ,
93
93
'django.contrib.staticfiles.finders.AppDirectoriesFinder' ,
94
94
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
95
+ 'compressor.finders.CompressorFinder' ,
95
96
)
96
97
97
98
# Make this unique, and don't share it with anybody.
145
146
'wall' ,
146
147
147
148
# external apps
149
+ 'compressor' ,
148
150
'shorturls' ,
149
151
'social_auth' ,
150
152
'south' ,
234
236
THUMBOR_SECURITY_KEY = 'rivendell_rox'
235
237
THUMBOR_SERVER = 'http://thby.nl'
236
238
239
+ COMPRESS = True
240
+
237
241
try :
238
242
from local_settings import *
239
243
except ImportError :
You can’t perform that action at this time.
0 commit comments