M
M
mister_pibody2020-04-29 00:06:21
Django
mister_pibody, 2020-04-29 00:06:21

How to fix imports error and KeyError at /admin Exception Value: 'actions'?

I studied django from this book, worked in pycharm, reached chapter 6 - the code at the link
https://github.com/PacktPublishing/Django-2-by-Exa...

For some reason it does not see the added decorator, although there is a common folder with empty __init__.py files and decorators.py file. It does not import from the Action application yet, although everything has been added and there is no difference with the file on the github.
BfyAE.png

Perhaps because of this, the sections in the admin panel that used to work and open were
broken KeyError Error
gaaPM.png

Question - what could be the problem? Maybe you need to install something in PyCharm itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-04-29
@tumbler

bookmarks in PyCharm mark as source root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question