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

Issue while giving python3 manage.py makemigrations command. #8

Open
shravyam12 opened this issue Jun 8, 2023 · 0 comments
Open

Issue while giving python3 manage.py makemigrations command. #8

shravyam12 opened this issue Jun 8, 2023 · 0 comments

Comments

@shravyam12
Copy link

shravyam12 commented Jun 8, 2023

Extraction was done and even database is having members_blog table with appropriate columns.
Now while giving python3 manage.py makemigrations command following content displayed. What is this issue is about ?

It is impossible to add a non-nullable field 'content' to blog without specifying a default. This is because the database needs something to populate existing rows.
Please select a fix:

  1. Provide a one-off default now (will be set on all existing rows with a null value for this column)
  2. Quit and manually define a default value in models.py.
    Select an option:
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

1 participant