E-learning-Django-
E-learning-Django- copied to clipboard
no model name 'message' when migrate
when i tray to migrate it says like this " model = message NameError: name 'message' is not defined" and when i cheacked the model there is no message model
I have the same problem
when i tray to migrate it says like this " model = message NameError: name 'message' is not defined" and when i cheacked the model there is no message model
have You found the solution?
you first remove all files inside migrations folder like (0001_initial.py ) After that you run command python manage.py makemigrations it will be work.
Thank you
вт, 10 мая 2022 г., 16:05 Mabusubani @.***>:
you first remove all files inside migrations folder like (0001_initial.py ) After that you run command python manage.py makemigrations it will be work.
— Reply to this email directly, view it on GitHub https://github.com/ShivamRohilllaa/E-learning-Django-/issues/3#issuecomment-1122188022, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRKZKEEDXZCUGR4ZXNMFGTVJIYG7ANCNFSM5JWTL2TA . You are receiving this because you commented.Message ID: @.***>
Go for this steps to solve your problem.
1.Delete all the files from the migrations folders from different apps. 2.Drop the SQL database schema. 3.Run python manage.py makemigration. 4.Run python manage.py migrate.
I do Follow all the steps you mentioned below but it still doesn't work.
There is message class missing in the models.py file. This is why the error pops up
There is message class missing in the models.py file. This is why the error pops up
could u please send solution for that here