Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishbah committed Oct 7, 2014
1 parent b558b66 commit c9dd4cc
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,23 @@ e.g. ``['small', 'retina']`` ::

def home(request):

if 'retina' in request.device.matched:
thumbnail_high_resolution = True
else:
thumbnail_high_resolution = False
if 'retina' in request.device.matched:
thumbnail_high_resolution = True
else:
thumbnail_high_resolution = False

if request.device.is_small:
hide_ads = True
else:
hide_ads = False
if request.device.is_small:
hide_ads = True
else:
hide_ads = False

...

context = {
'thumbnail_high_resolution': thumbnail_high_resolution
'hide_ads': hide_ads
}
...
context = {
'thumbnail_high_resolution': thumbnail_high_resolution,
'hide_ads': hide_ads
}

...
...

Quickstart
----------
Expand Down

0 comments on commit c9dd4cc

Please sign in to comment.