awesto / django-shop

A Django based shop system
http://www.django-shop.org
BSD 3-Clause "New" or "Revised" License
3.19k stars 1.04k forks source link

Wrong scriptname request if django-shop run under a subfolder #692

Open haricot opened 6 years ago

haricot commented 6 years ago

This comes from django-cms, solved with this PR https://github.com/divio/django-cms/pull/6160

Otherwise it will be an error of the type: AttributeError("'NoneType' object has no attribute 'publisher_is_draft'",)

jrief commented 6 years ago

How can I reproduce this?

haricot commented 6 years ago

Yes, if i use apache and mod_wsgi with WSGIScriptAlias /myshop without applying PR divio/django-cms#6160 I get the error above.

haricot commented 6 years ago

It happens when I go to an page url with an apphook Catalog List.