[Answer]-Django application database error: No module named

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?

Leave a comment