pinax-comments icon indicating copy to clipboard operation
pinax-comments copied to clipboard

AttributeError: 'str' object has no attribute '_meta'

Open agunghernanda17 opened this issue 5 years ago • 2 comments

I'm already following the tutorial instruction, but when I run via npm run dev, I have this error:

File "/home/mavis/.virtualenvs/pinax_project/lib/python3.6/site-packages/django/contrib/contenttypes/models.py", line 27, in _get_opts model = model._meta.concrete_model AttributeError: 'str' object has no attribute '_meta'

Does anyone know?

agunghernanda17 avatar Jan 07 '20 13:01 agunghernanda17

I'm not sure atm. I googled the error and there were a lot of different things that could be wrong. You might want to look through and do the same.

KatherineMichel avatar Jan 11 '20 00:01 KatherineMichel

I have encountered the same issue while including the snippet from docs. (see attachment) Also, I had to load {% load pinax_comments_tags bootstrap %} too, which was not written in docs.

2020-08-24-000105_1024x600_scrot

selcuko avatar Aug 23 '20 21:08 selcuko