contact@digitalnotebooks.co
Stay Organized, Stay Inspired. Let's Write.

Image Compression 26: Thumbnail, Size, Automatic Download

Back To All Notes
  • Notebook: Django: Automating Common Tasks
  • Speaker: Udemy Instructor Rathan Kumar
  • Date Created: Aug. 30, 2024, 11:31 p.m.
  • Owner: Rosilie

1. We need some thumbnails for our images on the admin dashboard. So, update the ADMIN.PY as:

2. Reload your admin panel:

3. To display the original and compressed sizes of the image, in the ADMIN.PY, we update:

4. To allow the user to download automatically the compressed image, we update our VIEWS.PY

5. Open your downloads folder for the images:

6. Push your changes to Github.



No PDF file attached.

Notebook
Notebook Details
Title: Django: Automating Common Tasks
Category: Coding