adamcharnock / django-hordak

Double entry accounting in Django
http://django-hordak.readthedocs.io
MIT License
239 stars 55 forks source link

TemplateDoesNotExist in Django Admin for Accounts list view #5

Closed kevindice closed 7 years ago

kevindice commented 7 years ago

admin/mptt_change_list.html does not exist. I seem to have django-mptt-0.8.6 installed properly, so I'm not sure why this error is getting raised.

admin/mptt_change_list.html
Request Method: GET
Request URL:    http://localhost:8000/admin/hordak/account/
Django Version: 1.10.4
Exception Type: TemplateDoesNotExist
Exception Value:    
admin/mptt_change_list.html
Exception Location: /usr/local/lib/python3.5/site-packages/django/template/loader.py in get_template, line 25
Python Executable:  /usr/local/bin/python
Python Version: 3.5.2
Python Path:    
['/app',
 '/usr/local/lib/python35.zip',
 '/usr/local/lib/python3.5',
 '/usr/local/lib/python3.5/plat-linux',
 '/usr/local/lib/python3.5/lib-dynload',
 '/usr/local/lib/python3.5/site-packages']
Server time:    Mon, 12 Dec 2016 05:27:58 -0600
adamcharnock commented 7 years ago

Hey @kevindice, thanks for taking Hordak for a spin!

This doesn't seem to be a problem on my local version (django-mptt==0.8.6 also), which makes me think it is likely a configuration issue. Possible causes I can think of are:

Let me know how you get on.

Adam

kevindice commented 7 years ago

mptt not in INSTALLED_APPS was the problem. It wasn't immediately obvious because I separate my INSTALLED_APPS into multiple arrays (along the lines of django core, wagtail cms, allauth, etc.) and then concatenate them. mptt was in an array that was left out.

adamcharnock commented 7 years ago

Great, I'm glad it got sorted out. Let me know how you get on or if you think anything is missing from the docs.

I have plans to pull some common functionality (e.g. forms) out of swiftwind and into hordak.