Fix reference to MIDDLEWARE_CLASSES in docs. Fixes
@@ -133,18 +133,16 @@ More info about installing ``flatpages`` is in the `Django docs`_.
Next, add ``oscar.apps.basket.middleware.BasketMiddleware`` and
``django.contrib.flatpages.middleware.FlatpageFallbackMiddleware`` to
-your ``MIDDLEWARE_CLASSES`` setting.
+your ``MIDDLEWARE`` setting (``MIDDLEWARE_CLASSES`` for Django 1.8).
.. code-block:: django
- MIDDLEWARE_CLASSES = (
+ MIDDLEWARE = (
...
'oscar.apps.basket.middleware.BasketMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
-Note: In django 1.10 and above: make sure to replace ``MIDDLEWARE`` with ``MIDDLEWARE_CLASSES``
-
Set your auth backends to:
.. code-block:: django
@@ -164,7 +162,7 @@ files from a remote storage (e.g. Amazon S3), you must manually copy a
:ref:`"Image not found" image <missing-image-label>` into ``MEDIA_ROOT``.
.. _`configured correctly`: https://docs.djangoproject.com/en/stable/howto/static-files/
-.. _sandbox settings: https://github.com/django-oscar/django-oscar/blob/3a5160a86c9b14c940c76a224a28cd37dd29f7f1/sites/sandbox/settings.py#L99
+.. _sandbox settings: https://github.com/django-oscar/django-oscar/blob/master/sandbox/settings.py#L102
URLs
