From d4c8282fe9e05c27075fb18b7be8aeda11e229fb Mon Sep 17 00:00:00 2001 From: tell-k Date: Tue, 20 Feb 2018 01:54:01 +0900 Subject: [PATCH] commit --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 958d292..08944c1 100644 --- a/README.rst +++ b/README.rst @@ -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 `_. @@ -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 @@ -276,7 +276,7 @@ Add the middlewares in settings.py. MIDDLEWARE = [ 'uadetector.django.middleware.UADetectorMiddleware', - 'path.to.DeviceVariantMiddlearee', + 'path.to.DeviceVariantMiddleware', # ... omit ... ]