django无法加载类
django无法加载类python定义模块fromdjango.dbimportmodels#Createyourmodelshere.classTopic(models...
django无法加载类python定义模块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
为什么执行时出现AppRegistryNotReady: Apps aren't loaded yet. 展开
# 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
为什么执行时出现AppRegistryNotReady: Apps aren't loaded yet. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询