[Answer]-Django Import Model Error

1👍

Supposing your app name is ‘App’ you have to type:

from App.models import Poll

in order to successfully import your Poll model. Change App with your current application name

Also, two things to bear in mind

1) Poll is different from poll: check that your capitalization is consistent with your model definition

2) You should have created the app using django startapp command. If not, at least make sure you have an empty init.py file inside your App folder.

Leave a comment