Solveddjango blog zinnia Zinnia0.18, in Python3 venv, DEBUG on, Cannot resolve keyword 'entries' into field. Choices are:avatar, comment_comments,...

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.

django.core.exceptions.FieldError: Cannot resolve keyword 'entries' into field. Choices are: avatar, comment_comments, comment_flags, date_joined, email, first_name, groups, id, is_active, is_staff, is_superuser, last_login, last_name, logentry, password, user_permissions, username

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

40 Answers

✔️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.

Related Issues:

4
django blog zinnia Zinnia0.18, in Python3 venv, DEBUG on, Cannot resolve keyword 'entries' into field. Choices are:avatar, comment_comments,...
I don't understand what's going under the hood but here is what I have found When DEBUG is True ...
3557
gatsby Error: ENOSPC: System limit for number of file watchers reached, watch '/home/foldername/abcrypto/static'
It’s hitting your system's file watchers limit Try echo fs.inotify.max_user_watches=524288 | sudo te...
469
next.js Module not found: Can't resolve 'fs'
Update for modern Next.js (9.4+) You can safely use fs within getStaticProps or getServerSideProps n...
392
gatsby Testing Site with Gatsby Develop from Local LAN
You can also use gatsby develop -H 0.0.0.0 Summary I've searched as best I could ...
305
gatsby Unknown type "ContentfulFixed". Did you mean "ContentfulBlogPost", "ContentfulContentType", or "ContentfulBlogPostEdge"?
For those having the same error ERROR #85901 GRAPHQL I'm trying to fetch my blogs from contentful an...
149
next.js Adding GA script tag?
No need for react-ga Use the google tag manager with the <Head> component to inject analytics ...
146
gatsby [v2] Error: Cannot find module 'core-js/modules/es6.array.filter'
Thanks Pieh yeah tried that no go I'm afraid I did actually just fix this by running npm install --s...
131
gatsby "Gatsby: command not found" on trying to run Gatsby command after installing npm install --global gatsby-cli
@bfeldman89 Here are the steps I took that resolved the issue for me as well based on @pereiraryan's...
117
gatsby Cannot find module '../build/Release/sharp.node'
Had the same error Deleting node_modules .cache public and reinstalling all dependencies fixed it fo...
114
gatsby Error: Cannot find module 'react' - after installing Plugin
This occurred for me when I added gatsby-plugin-sass via npm Description When i followed the documen...
109
gatsby Ambiguous "StoreStateProvider" error for all gatsby commands
I fixed the problem! I used npm to uninstall then (re)install react react-dom and gatsby I did it in...
102
gatsby gatsby command not found
On the latest MacOS I had to update my npm config npm config delete prefix npm config set prefix /us...
100
next.js getServerSideProps cannot be serialized as JSON. Please only return JSON serializable data types
@timneutkens I don't get why this issue is closed It seems quite a lot of people are still stumbling...
90
next.js Could not freeze filename
It has happened to me deleting the cache solved it rm -rf node_modules/.cache Recently I've updated ...
90
next.js Ability to co-locate non-page files in the pages directory
@probablyup this is so easy set pageExtensions as below a file tree like below and only /list page a...
88
gatsby Question: How do I query based on gatsby-source-filesystem name?
@tsiq-swyx I'm using something like this to pass the collection field from File to MarkdownRemark Th...
86
next.js Nextjs causing hard refresh when i click in the Link
Have you tried this format for your Link? Here is a good example of this type of routing for dynamic...
84
next.js Link as styled component
Hey guys At version 3.0.1-beta.13+ I followed #799 but couldn't get a clean way to have a styled-com...
84
next.js Cannot import Typescript files from outside of 'dir' directory
If anyone needs this right now it is available as an experimental feature in 10.1.2 An example next....
83
next.js Image optimisation external resource not working
@raphaelbs I had a similar issue in that it worked locally but not in prod Bug report Describe the b...
83
next.js 8.0.0 - dynamic import causing 'You may need an appropriate loader...' error
Ok here is the winning combo (made sure is 100% reproducible): My project already had next v7 npm in...
80
gatsby events.js:182 throw er; // Unhandled 'error' event
This fix for me: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysc...
79
next.js Cannot read property 'prefetch' and 'push' of null
I was able to work around the issue by mocking next/link instead of next/router: ...
75
next.js Include css in a next project?
Create a /static folder at the same level the /pages folder I know that Next uses Glamor and css-in-...
75
next.js Handling images
@impronunciable I think its not so good idea to store all the images in the same global static folde...
74
next.js Generated static files html files have wrong assets paths
Thanks @cargallo 👍 Was trying to serve static exported files through an Electron app and was wonder...
69
gatsby Gatsby@2.11.0 Build failure (JavaScript heap out of memory)
Yeah affects Netlify too I was able to get Netlify to build correctly by adding an environment varia...
69
next.js Next.js API routes (and pages) should support reading files
Workaround I'm using: and in the location you need the path I know this doesn't solve the need to re...
68
gatsby Webpack error #98123 when running "gatsby develop"
@coldPen i've been testing this today and this one is kinda tricky to triage Here are the steps i to...
67
gatsby -warn- Multiple node fields resolve to the same GraphQL field
I have the same issue with Strapi in specific the gatsby-source-strapi plugin. might be banal but I ...
64
gatsby install gatsby-transformer-remark breaks 'gatsby develop'
Had this problem today required delete of package-lock.json and also the commands below: ...
64
next.js Error after upgrading from 9.3.6 to 9.4
@aralroca Have you tried deleting the .next directory and running npm run dev again? ...
64
next.js Dev mode on Next.js v12 breaks with combination of features
This seems to be a particular case with Chakra UI and some other deps As a temporary workaround you ...
61
gatsby TypeError: Cannot read property 'activities' of undefined in yoga-layout-prebuilt
Hi! I had the exact same issue and fixed it by doing the following: Updated my gatsby version to 2.2...
61
gatsby Allow non-existing fields in GraphQL Queries
This issue remains my biggest gripe with Gatsby Hello I'm using Gatsby with the Wordpress source plu...
60
gatsby Autoprefixer "browsers" option is deprecated in v9, produces warnings
To get rid of the error with Gulp do the following: Add browserslist options array to your package.j...
60
next.js How to mock useRouter?
I ended up mocking it like this I only need the useRouter export so this worked well enough for my p...
59
gatsby Importing image into file throws error
Just ran into this error and it was because of gatsby-plugin-react-svg and my SVGs living in the sam...
59
gatsby Error: Reducers may not dispatch actions
Here it is it might save you 4h of debugging: Make sure the siteUrl in your gatsby-config.js is corr...
59
gatsby Node Sass version 5.0.0 is incompatible with ^4.0.0.
Another workaround is to just use Dart Sass instead of Node Sass Description When adding the gatsby-...
59
gatsby Losing img quality in gatsby-image
You can set quality: Description I'm using gatsby-image and I've been noticed that my generated png ...
59
gatsby Question - How to read Markdown from frontmatter
This could be totally off but couldn't you just create a markdown component like below that you coul...
58
gatsby Tutorial Part 4 - Unknown field siteMetadata on type Site
Perhaps you didn't restart gatsby develop after adding gatsby-config.js? The schema doesn't get rebu...
58
gatsby Inconsistent CSS Styling Differs Between gatsby develop and build - Why?
FWIW adding gatsby-plugin-styled-components in gatsby-config.js worked for me. People finding this t...
58
next.js [Next 9.0] How to remove the clickable label "Prerendered Page" and loading Icon ?
https://nextjs.org/docs/#automatic-prerender-indicator I want to remove Prerendered Page label and i...
58
next.js Add a Dynamic Sitemap example that works with the new Dynamic Routes
I am making use of the new rewrites feature of NextJS v9.1.4 Inside of pages/api/sitemap.ts I run th...
57
gatsby Flicker of Unstyled Content
Turn out I forgot to add gatsby-plugin-styled-components in gatsby-config.js Now it works 😓 ...
57
next.js Getting ReactDOMServer does not yet support Suspense error while using styled-components
In my case following error Error: ReactDOMServer does not yet support Suspense What version of Next....
55
next.js False positive report of "API resolved without sending a response"
@gaku-sei it is most likely caused by the callback as we can't detect you are still doing work in th...
54
next.js Provide example using Context API with custom _app.js
I have an example if anyone wants to clean it up and turn it into a PR: NoteProvider.js _app.js Then...