0

I tried to run this script but definitely something missing here... mysite this is the app, School is the class

from mysite.models import School
school1 = School(name='Oxford school', address='Shole St.33', email='ox-scholl@gmail.com', phone_number='3445348910')
school1.save()

And get this error: raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

Pavel Silber
  • 105
  • 1
  • 9

1 Answers1

0

As Ganesh Negi mentioned: Django: AppRegistryNotReady(), but you can also use fixtures

joe513
  • 96
  • 1
  • 4