Wednesday 3 June 2020

Wagtail: admin KeyError at /admin/

I recently saw this error after playing around with Page Model Classes.   

To fix this I worked out which Class was at fault and had to remove it and all mentions of it in the 'Migrations' folder.  

Once I did that I could run the following commands again and had regained access to my /admin/ folder 

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

I also renamed my Class to not cause any other possible conflicts. 

No comments: