Sometimes, you might need to allow only specific people to download intellectual property from your website. For example, music, videos, literature, or other artistic works should be accessible only to paid members. In this recipe, you will learn how to restrict image downloads only to authenticated users using the contributed Django auth app.
Downloading authorized files
Getting ready
To start, create the quotes app as in the Uploading images recipe from Chapter 3, Forms and Views.
How to do it...
Execute these steps one by one:
- Create the view that will require authentication...