Standard configuration
Django has a standard pattern to configure the static and media files. Static and media are two different concerns, where static files refer to fixed content, such as HTML, JS, CSS, and images. Django defines some configuration related to static files in settings.py and URL configured in urls.py. Media files refer to any files that are handled dynamically by uploading. Django has a very good mechanism to configure and manage static HTML, JS, CSS, and images files.
Normally, the default Django static file configuration assumes that you will have static files along with your code base under a static directory, but, in our case, we want to put all static content under an Amazon S3 bucket and serve it through Amazon CloudFront ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access