Skip to content

Commit

Permalink
Pillow is required for tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Sep 5, 2016
1 parent 6877979 commit 01d4600
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,18 @@ For press releases (new stories with the press_release boolean set to `True`):

And here is an example that how you can show the news or press releases:

{% for news_item in news_items %}
<article class="news-article">
<h3>
<a href="{{ news_item.url }}">
{% if news_item.image %}<img src="{{ news_item.image.url }}" width="168" />{% endif %}
<span>{{ news_item.title }}</span>
</a>
</h3>
</article>
{% endfor %}
```html
{% for news_item in news_items %}
<article class="news-article" style="{% if news_item.secondary_image_thumb %}background-image:url({% static news_item.secondary_image_thumb.url %});{% endif %}">
<h3>
<a href="{{ news_item.url }}">
{% if news_item.image_thumb %}<img src="{{ news_item.image_thumb.url }}" width="168" />{% endif %}
<span>{{ news_item.title }}</span>
</a>
</h3>
</article>
{% endfor %}
```

Add and manage news and press releases via the Django admin.

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def read(*parts):
},
test_suite="runtests.runtests",
tests_require=[
"Pillow"
],
install_requires=[
"django-imagekit>=3.3",
Expand Down

0 comments on commit 01d4600

Please sign in to comment.