1👍
✅
It can be a problem with models.py.
You seem to write code as follows.
foo = models.URLFIELD()
“models” module has no URLFIELD().
You should change it to URLField().
0👍
You’ll need to add an __init__.py
file (it can be empty) to the folder tut1.books before python can import it. See this answer: What is __init__.py for?
- [Answer]-Django generic CBVs passing variables from templates to views
- [Answer]-Django ImageFile _get_image_dimensions() returns None
- [Answer]-Pass variable through url to view
Source:stackexchange.com