Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:39:15+00:00 2026-06-07T03:39:15+00:00

from django.db import models from audit_trail.audit import AuditTrail from my_base_model.classes import BaseUuidModel from my_class_base

  • 0
from django.db import models    
from audit_trail.audit import AuditTrail    
from my_base_model.classes import BaseUuidModel                                    
from my_class_base import BaseClass

class Mini(BaseMaternalVisitModel):
    my_class_base = models.ForeignKey(BaseClass) 

class MiniHu(BaseUuidModel): 
    myclass = models.ForeignKey(Mini)   

    class Meta:
         app_label="classes"

when I run python manage.py validate I get this error

<MiniHu> has a relation with model <Mini>, which has either not been installed or is abstract.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:39:16+00:00Added an answer on June 7, 2026 at 3:39 am

    Have you ran python manage.py syncdb to create the necessary database tables? You also mention the Mini class is a subclass of BaseMaternalVisitModel, which you have not imported here (though if you’re getting that error I’m guessing you just forgot that line when you posted here).

    When you’re subclassing Django models you should be aware of the difference between “normal” models and “abstract” models. When a model is “abstract” it is not created with syncdb — only when you subclass it, in which case only the subclassed model is created in the database, containing all its own fields and the ones it inherited from its parent class: the abstract class. This is the reason for the “not been installed or is abstract” error: abstract models don’t exist as far as the database is concerned. Django is trying to access a model in the database that doesn’t exist: either because you haven’t ran syncdb and created it or because it is an abstract model and doesn’t exist in the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a Django model likeso: from django.db import models class MyModel(models.Model): textfield = models.TextField()
Code: class JobsManager(models.Manager): def get_active_by_category(self, cat, limit): import datetime from django.db.models import Q return
this is my models.py from django.db import models # Create your models here. class
In my models.py: from django.db import models from core import tasks class Image(models.Model): image
This is my models.py from django.db import models class School(models.Model): school = models.CharField(max_length=300) def
Let's assume we have following models: from django.db import models class Foo(models.Model): name =
I have the following model: from django.db import models import datetime class Club(models.Model): establishment
I have a class Book : from django.db import models from users.models import User
from django.db import models class Post(models.Model): title = models.CharField(max_length=100) content = models.CharField(max_length=1000) created =
Given: from django.db import models class Food(models.Model): Food, by name. name = models.CharField(max_length=25) class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.