Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
May I ask how is this going?
#1
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.
Reply


Messages In This Thread
May I ask how is this going? - by lvlinux - May-15-2018, 01:12 PM
RE: May I ask how is this going? - by Larz60+ - May-15-2018, 02:57 PM
RE: May I ask how is this going? - by lvlinux - May-16-2018, 12:36 AM
RE: May I ask how is this going? - by Larz60+ - May-16-2018, 01:01 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020