Exceptions:

Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> from django.utils import timezone
>>> from polls.models import Question
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\AVITABAYAN\mysite\polls\models.py", line 7, in <module>
    class Question(models.Model):
  File "c:\python36\lib\site-packages\django\db\models\base.py", line 100, 
in __new__
    app_config = apps.get_containing_app_config(module)
  File "c:\python36\lib\site-packages\django\apps\registry.py", line 244, 
in get_containing_app_config
    self.check_apps_ready()
  File "c:\python36\lib\site-packages\django\apps\registry.py", line 127, 
in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/01e57139-6ac4-45ac-837e-196980bec2ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to