adamcharnock/django-hordak

'NoneType' object has no attribute 'currency_formats'

prdpspkt opened this issue · 3 comments

`

Request Method: GET
http://localhost:8000/hordak/
3.2.15
AttributeError
'NoneType' object has no attribute 'currency_formats'
C:\Users\Dell\PycharmProjects\dtcmis\python\lib\site-packages\babel\numbers.py, line 531, in format_currency
C:\Users\Dell\PycharmProjects\dtcmis\python\Scripts\python.exe
3.9.0
['C:\Users\Dell\PycharmProjects\dtcmis', 'C:\Users\Dell\PycharmProjects\dtcmis', 'C:\Program Files\JetBrains\PyCharm ' '2020.1.5\plugins\python\helpers\pycharm_display', 'C:\Users\Dell\AppData\Local\Programs\Python\Python39\python39.zip', 'C:\Users\Dell\AppData\Local\Programs\Python\Python39\DLLs', 'C:\Users\Dell\AppData\Local\Programs\Python\Python39\lib', 'C:\Users\Dell\AppData\Local\Programs\Python\Python39', 'C:\Users\Dell\PycharmProjects\dtcmis\python', 'C:\Users\Dell\PycharmProjects\dtcmis\python\lib\site-packages', 'C:\Program Files\JetBrains\PyCharm ' '2020.1.5\plugins\python\helpers\pycharm_matplotlib_backend']
Tue, 13 Sep 2022 11:51:54 +0545
`

Is there any solution? This error comes after creating an account.
Django 3.2.15

@prdpspkt From what you posted I am unable to identify what part of django-hordak are you using. There is no path /hordak/ in urls.py, so I really don't know which view are you using or what code did you execute.

There is also no mention of django-hordak code in the backtrace.

It's the first page of hordak. Account lists. After I created a new account. Then account listing shows this error.

I am able to create accounts and see their list on the AccountListView page without problems on the example project:
Snímek obrazovky_2022-09-18_10-27-19

(I got errors when I filled in some random non-existent currency code, but that doesn't seem to be your problem)

Please provide an screenshot of the page in DEBUG mode and try to investigate yourself, what setup specific to your project or data you filled in could cause the error.