Reference Section-20:
Add post assign logged in user to author
Sir, I faced an issue during this lecture, But Now in this time, I tried to debug it by taking help from stack overflow. As per Stack overflow, I deleted my database" db.sqlite3 and ran commands makemigrations and migrate. Now after this, I am facing the above mentioned issue. kindly help in this regard.
HI Ejaz Ali Inayat ,
The issue you are facing is because there are no migrations to apply. I also encountered the same issue with your code previously.
To resolve this, first, run:
If the issue persists, try making a small change in the model. For example, in my case, I changed category_name
from max_length=50
to max_length=51
, then ran the migrations again, and it was fixed.
Follow the same steps for all models, and hopefully, your issue will be resolved.
If you still face any issues, let me know.

@mohaiminul-islam Sir, the issue remains the same as django.db.utils.OperationalError: no such table: blogs_category
Ejaz Ali Inayat,
If you're still facing the issue, it might be because your migrations haven't been created. As a result, there is no table in the database. To resolve this, I have provided a zip file containing the necessary migrations. Run the project and proceed with it.