This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
django-remdow
=============

Simple Django app for static files (img files):

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

Install
=======

```python
pip install django_remdow
```

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

```python
INSTALLED_APPS = [
...
'django_remdow',
...
]
```


Usage
=====

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


```python
# 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`:

```python
{{ '<img src="http://placehold.it/350x150"><img src="http://placehold.it/350x150">'|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:

```python
{% lazy_script_include %}
```

And use filter `img_lazy`:

```python
{{ '<img src="http://placehold.it/350x150">'|img_lazy }}
```


Center images with `Bootstrap`
------------------------------

Filter `img_center` centers all images

```python
{{ '<img src="http://placehold.it/350x150">'|img_center }}
```

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


Image responsive with `Bootstrap`
---------------------------------

Filter `img-responsive` responsives all images

```python
{{ '<img src="http://placehold.it/350x150">'|img_responsive }}
```

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

Release History

0.0.6

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-remdow-0.0.6.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source May 20, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting