Python Forum
May I ask how is this going? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: May I ask how is this going? (/thread-10154.html)



May I ask how is this going? - lvlinux - May-15-2018

from django.db import models

# Create your models here.

class Topic(models.Model):
    """用户学习的主题"""
    text = models.CharField(max_length=200)
    date_added = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.text
Error:
Traceback (most recent call last): File "C:/Python/study_notes/agss/models.py", line 5, in <module> class T(models.Model): File "C:\Python\study_notes\11_env\lib\site-packages\django\db\models\base.py", line 100, in __new__ app_config = apps.get_containing_app_config(module) File "C:\Python\study_notes\11_env\lib\site-packages\django\apps\registry.py", line 244, in get_containing_app_config self.check_apps_ready() File "C:\Python\study_notes\11_env\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.



RE: May I ask how is this going? - Larz60+ - May-15-2018

Cryptic title
What are you looking for?


RE: May I ask how is this going? - lvlinux - May-16-2018

(May-15-2018, 02:57 PM)Larz60+ Wrote: Cryptic title
What are you looking for?

  • I asked why the error



RE: May I ask how is this going? - Larz60+ - May-16-2018

May be addressed here: https://stackoverflow.com/questions/25537905/django-1-7-throws-django-core-exceptions-appregistrynotready-models-arent-load