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

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 and, then made the migrations.
However, when I went to , 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:


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:

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 ...
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...
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...
gatsby Testing Site with Gatsby Develop from Local LAN
You can also use gatsby develop -H Summary I've searched as best I could ...
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...
next.js Adding GA script tag?
No need for react-ga Use the google tag manager with the <Head> component to inject analytics ...
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...
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...
gatsby Cannot find module '../build/Release/sharp.node'
Had the same error Deleting node_modules .cache public and reinstalling all dependencies fixed it fo...
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...
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...
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...
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...
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 ...
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...
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...
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...
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...
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....
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...
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...
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...
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: ...
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-...
next.js Handling images
@impronunciable I think its not so good idea to store all the images in the same global static folde...
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...
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...
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...
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...
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 ...
gatsby install gatsby-transformer-remark breaks 'gatsby develop'
Had this problem today required delete of package-lock.json and also the commands below: ...
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? ...
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 ...
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...
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...
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...
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...
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...
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...
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-...
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 ...
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...
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...
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...
next.js [Next 9.0] How to remove the clickable label "Prerendered Page" and loading Icon ? I want to remove Prerendered Page label and i...
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...
gatsby Flicker of Unstyled Content
Turn out I forgot to add gatsby-plugin-styled-components in gatsby-config.js Now it works 😓 ...
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....
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...
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...