You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After following the installation steps through to getting logged in, creating a user, creating a newsletter, then trying to add a message, I got an error that Message needs a primary key value before it can be used. I am using SQLite.
and makemigrations, migrate, and checked the database. Deleted the newsletter, and subscription and user. Then recreated a user, newsletter and subscription, still gives same primary key value error on the message add. I added id = models.BIgAutoField(primarykey=True, default=(milliseconds since epoch)) now working, for one or two messages but I know this is not a solution.
The text was updated successfully, but these errors were encountered:
After following the installation steps through to getting logged in, creating a user, creating a newsletter, then trying to add a message, I got an error that Message needs a primary key value before it can be used. I am using SQLite.
I Changed settings to add
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
and makemigrations, migrate, and checked the database. Deleted the newsletter, and subscription and user. Then recreated a user, newsletter and subscription, still gives same primary key value error on the message add. I added id = models.BIgAutoField(primarykey=True, default=(milliseconds since epoch)) now working, for one or two messages but I know this is not a solution.
The text was updated successfully, but these errors were encountered: