Static Files

Created on Dec. 30, 2012, 5:32 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:26 p.m.

Static Files are such files that usually do not change (images, CSS, Javascript, etc.) and are needed to render a complete web page.

The following command collects all static files from different application installed in a web project (i.e. those that are defined in settings.STATICFILES_DIRS into a single location (defined by settings.STATIC_ROOT) that can easily be served:

./manage.py collectstatic

S3 is great place to store such kind of data, as it is exemplified by the Gallery for Images.

media_http.jpg

Tags: web, django, storage
Categories: Tutorial
Parent: Web Framework

Update entry (Admin) | See changes

Comment on This Data Unit