How to Solve NameError: name 'Blog' is not defined -- blog
Solution: Import the 'Blog' module
To Solve the error, add the following line to the top of your code.
from blog.models import Blog
For more information:
Python blog Blog
To Solve the error, add the following line to the top of your code.
from blog.models import Blog
For more information:
Python blog Blog