cleanup static

This commit is contained in:
j 2011-10-28 00:15:37 +02:00
commit c544084c8e
29 changed files with 22 additions and 94 deletions

View file

@ -693,7 +693,7 @@ def poster(request, id, size=None):
if item.poster:
return image_to_response(item.poster, size)
else:
poster_path = os.path.join(settings.STATIC_ROOT, 'png/poster.png')
poster_path = os.path.join(settings.STATIC_ROOT, 'jpg/poster.jpg')
response = HttpFileResponse(poster_path, content_type='image/jpeg')
response['Cache-Control'] = 'no-cache'
return response