dinoperovic / django-salesman

Headless e-commerce framework for Django and Wagtail.
https://django-salesman.rtfd.io
BSD 3-Clause "New" or "Revised" License
384 stars 46 forks source link

TemplateDoesNotExist at /cms/salesman/order/ in Wagtail 2.14 #15

Closed ArthurJahn closed 3 years ago

ArthurJahn commented 3 years ago

Describe the bug On Wagtail 2.14 the orders admin page returns the following error:

TemplateDoesNotExist at /cms/salesman/order/
modeladmin/salesman/order/index.html, modeladmin/salesman/index.html, modeladmin/index.html

Request Method: | GET
-- | --
http://localhost:8000/cms/salesman/order/
3.2.6
TemplateDoesNotExist
modeladmin/salesman/order/index.html, modeladmin/salesman/index.html, modeladmin/index.html
/usr/local/lib/python3.8/site-packages/django/template/loader.py, line 47, in select_template
/usr/local/bin/python
3.8.1
['/app',  '/usr/local/bin',  '/usr/local/lib/python38.zip',  '/usr/local/lib/python3.8',  '/usr/local/lib/python3.8/lib-dynload',  '/usr/local/lib/python3.8/site-packages']
Tue, 17 Aug 2021 19:53:46 +0000

To Reproduce Steps to reproduce the behavior:

  1. Install Wagtail and django-salesman
  2. Click on 'Orders' menu link
  3. See error

Technical details:

dinoperovic commented 3 years ago

Hi @ArthurJahn, thanks for the report.

The support for Wagtail 2.14 is not yet added as it was released recently. Will look into it soon.

dinoperovic commented 3 years ago

@ArthurJahn This doesn't seem to be an issue in Salesman, cms works fine with Wagtail 2.14.

It looks to me as if you're missing the wagtail.contrib.modeladmin in your INSTALLED_APPS.

For the simplest installation, you should check out the example project. https://github.com/dinoperovic/django-salesman/tree/master/example

Also, I've released Salesman 1.0.3 which adds Wagtail-2.14 as a viable requirement if you need it.

ArthurJahn commented 3 years ago

Thanks!