dinoperovic/django-salesman

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

ArthurJahn opened this issue · 3 comments

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:

  • Python version: 3.8
  • Django version: 3.2
  • Wagtail version: 2.14

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.

@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.

Thanks!