Solveddjango blog zinnia Zinnia0.18, in Python3 venv, DEBUG on, Cannot resolve keyword 'entries' into field. Choices are:avatar, comment_comments,...
✔️Accepted Answer
I don't understand what's going under the hood, but here is what I have found.
When DEBUG
is True, the django.contrib.admin app will apply some check functions on the ModelAdmin class.
When executing the _check_list_display
on CommentsAdmin
, this provoke the issue when checking the attribute 'name'
which is a property, not a real field.
It seems that the check function make a call onmodel._meta.get_field(item)
, and destroy the the relationship between the models for a non obvious reason, but certainly related on how the property is calculated (it's a DB call)...
Making this check call later solve the issue, because the relationship on the Entry model seems OK.
Django_comment should change the CommentsAdmin.list_display to make 'name' a callable, which will defer the check, and do it properly, but I don't think that they will change this now...
So I will the update the documentation.
Hi!
I'm using Django 1.10 and I'm trying to deploy blog Zinnia in a Python 3 virtualenv.
I installed Zinnia 0.18 using pip, and followed the "get started" guide to set everything in my site settings.py and urls.py, then made the migrations.
However, when I went to 127.0.0.1/weblog , the exception raised.
I looked up issues solved (or closed) before, but unluckily none of them works for me.
Apps I installed:
Django==1.10
Pillow==3.3.1
PyMySQL==0.7.6
beautifulsoup4==4.5.1
django-appconf==1.0.2
django-avatar==3.0.0
django-blog-zinnia==0.18
django-contrib-comments==1.7.2
django-mptt==0.8.6
django-tagging==0.4.5
django-xmlrpc==0.1.5
mots-vides==2015.5.11
pyparsing==2.1.9
pytz==2016.6.1
regex==2016.08.27