-1
I have this problem in my code:
OperationalError at /admin/forum/thread/
no such column: forum_thread.slug
I’ve tried to make a million changes and I couldn’t. When I turn the command python manage.py makemigrations
returns the following error message:
You are trying to add a non-nullable field 'Slug' to thread without a default; we can’t do that (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) 2) Quit, and Let me add a default in models.py Select an option:
Down with my models.py:
https://github.com/MarcusWiilo/Django-Aplications/blob/master/pro_final/pro_final/forum/models.py
The complete file is here:
https://github.com/MarcusWiilo/Django-Aplications/tree/master/pro_final
Thanks.