Muhuri.JSON
Muhuri.JSON

Reputation: 173

LookupError: No installed app with label 'admin'

I am working on a HR app using the small-small-hr set up in django. Getting this look up error when i run python manage.py runserver or makemigrations. Below is my code for apps.py and settings.py. What could be going wrong here?

apps.py:

from django.apps import AppConfig

class SmallSmallHrConfig(AppConfig):
    """
    Apps config class
    """
    name = 'small_small_hr'
    app_label = 'small_small_hr'
    def ready(self):
        # pylint: disable=unused-import
        import small_small_hr.signals  # noqa
        # set up app settings
        from django.conf import settings
        import small_small_hr.settings as defaults
        for name in dir(defaults):
            if name.isupper() and not hasattr(settings, name):
                setattr(settings, name, getattr(defaults, name))**

settings.py:

INSTALLED_APPS = [
    'small_small_hr.apps.SmallSmallHrConfig',
    'crispy_forms',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites.models.Site'**
]

Upvotes: 0

Views: 685

Answers (1)

Muhuri.JSON
Muhuri.JSON

Reputation: 173

Downgrading to django 2.1 worked apparently django 2.2 isnt compatible with sqlite3

Upvotes: 1

Related Questions