Skip to main content

Simple Django app for manipulating static files (img files)

Project description


Simple Django app for static files (img files):

- Download external images
- To center images
- Lazy load images


pip install django_remdow

Add `'django_remdow',` to `INSTALLED_APPS`:



remdow app contains different filters and tags. You can activate them with line in your template:

# example.html

{% load remdow %}

Download external images

If you have model with HTML content which contains external images, you can download external images to local folder and receive static with help `nginx`:

Use filter `img_local`:

{{ '<img src=""><img src="">'|img_local }}

This filter parse HTML code, finds `img` tag, parses urls and then downloads image to local folder, and finally, replaces img url to local url.

Lazy images

You can use `layzr.js` for lazy loading images.

Load lazy script:

{% lazy_script_include %}

And use filter `img_lazy`:

{{ '<img src="">'|img_lazy }}

Center images with `Bootstrap`

Filter `img_center` centers all images

{{ '<img src="">'|img_center }}

Filter adds class `center-block` to all img tags

Image responsive with `Bootstrap`

Filter `img-responsive` responsives all images

{{ '<img src="">'|img_responsive }}

Filter adds class `img-responsive` to all img tags

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-remdow, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size django-remdow-0.0.6.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page