Django throws an error: LookupError: No installed app with label 'admin'

Today after installing django-cryptography for encrypting all fields in my models using this website, this error is keep showing on my terminal after running python runserver:

  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\core\checks\", line 24, in check_resolver
    return check_method()
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\urls\", line 494, in check
    for pattern in self.url_patterns:
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\utils\", line 57, in __get__
    res = instance.__dict__[] = self.func(instance)
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\urls\", line 715, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\utils\", line 57, in __get__
    res = instance.__dict__[] = self.func(instance)
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\urls\", line 708, in urlconf_module
    return import_module(self.urlconf_name)
  File "C:\Users\ADAMUDEE\AppData\Local\Programs\Python\Python310\lib\importlib\", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\Users\ADAMUDEE\Desktop\school\project\school\", line 23, in <module>
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\utils\", line 266, in inner
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\contrib\admin\", line 595, in _setup
    AdminSiteClass = import_string(apps.get_app_config("admin").default_site)
  File "C:\Users\ADAMUDEE\Desktop\school\myv\lib\site-packages\django\apps\", line 165, in get_app_config
    raise LookupError(message)
LookupError: No installed app with label 'admin'.

I try to solve it using these answer in this question, but no one works, I also deleted sqlite in my project folder and run migrate and makemigrations again, but it does not work, is there anyone who can help please?



my models:

class PrimaryAlbum(models.Model):
    name = encrypt(models.CharField(max_length=100))
    user = models.ForeignKey(User,

    slug = models.SlugField(unique=True, max_length=100)

    def save(self, *args, **kwargs):
        self.slug = slugify(
        super().save(*args, **kwargs)

    def __str__(self):



According to your error log your error is due to including admin urls. Please import your admin app in your urls file like this...

from django.contrib import admin

urlpatterns = [

I solve my problem through Ken Whitesell in django forums:

the version of django-cryptography I'm using is not compatible with the combination of my python and django verison, that is the reasons why i'm getting this error.

Back to Top