Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tell-k committed Feb 19, 2018
1 parent cc1edae commit d4c8282
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -248,7 +248,7 @@ In this case templates layout will change as follows



Switch templates based on UserAgent
Switch templates based on User-Agent
=======================================

It can be realized easily using `uadetector <https://github.com/tell-k/uadetector>`_.
Expand All @@ -257,7 +257,7 @@ Create Django middleware to set varaint for each device.

.. code-block:: python
class DeviceVariantMiddleare:
class DeviceVariantMiddleware:
def __init__(self, get_response):
self.get_response = get_response
Expand All @@ -276,7 +276,7 @@ Add the middlewares in settings.py.
MIDDLEWARE = [
'uadetector.django.middleware.UADetectorMiddleware',
'path.to.DeviceVariantMiddlearee',
'path.to.DeviceVariantMiddleware',
# ... omit ...
]
Expand Down

0 comments on commit d4c8282

Please sign in to comment.