Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wagtail HomePage Model Error #1860

Open
abuu94 opened this issue Dec 23, 2024 · 3 comments
Open

Wagtail HomePage Model Error #1860

abuu94 opened this issue Dec 23, 2024 · 3 comments

Comments

@abuu94
Copy link

abuu94 commented Dec 23, 2024

Issue description

I am currently working on a blog using Wagtail CMS. I’ve encountered a couple of issues that I need assistance with:

  1. I receive a warning stating, "The WAGTAILADMIN_BASE_URL setting is not defined."
  2. I am facing the following error: "blog.BlogPage.author: (fields.E320) Field specifies on_delete=SET_NULL, but cannot be null."

I would greatly appreciate your guidance on how to resolve these issues. Any steps or recommendations you can provide will be extremely helpful.

Ref: https://tutorial-extensions.djangogirls.org/en/add_wagtail_to_your_website/wagtail_integration_adding_posts/

Operating system

I am using Window-OS

@das-g
Copy link
Member

das-g commented Dec 23, 2024

Does this happen when following that tutorial extension after having followed the Django Girls tutorial to completion? If yes, at what step of the tutorial extension do this warning and this error occur?

@abuu94
Copy link
Author

abuu94 commented Dec 23, 2024

Happened to me, when i was following https://tutorial-extensions.djangogirls.org/en/add_wagtail_to_your_website/wagtail_integration_adding_posts/.

Currently i was able to solve it by import the following line of code in models.py :

from django.contrib.auth.models import User

@abuu94
Copy link
Author

abuu94 commented Dec 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants