[Fixed]-'WSGIRequest' object has no attribute 'cart' in django-cartridge

1👍

This problem is due to missing Cartridge’s ShopMiddleware. Add this into your settings.py file :

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    .......,
    .......,
    'cartridge.shop.middleware.ShopMiddleware',
)

And if the issue further exists,then compare your settings.py file with This link.

Leave a comment