0
from django.db import models

# Create your models here.
class Topic(models.Model):
    text = models.CharField(max_length=200)
    data_added = models.DateTimeField(auto_now_add=True)
    def __str__(self):
        return self.text

Why do I get this error?

django.core.exceptions.AppRegistryNotReady

Robert
  • 7,394
  • 40
  • 45
  • 64

1 Answers1

0

As per the Django documentation on exceptions

This exception is raised when attempting to use models before the app loading process, which initializes the ORM, is complete.

Araelath
  • 575
  • 2
  • 15