Python - How to import 'models' -- django

Import models

To import models, Add the following line to the top of your code.

from django.db import models

 

For more information about models:
Django models