Django "No installed app with label 'logs'" Error Even After Correcting Project Structure

I'm encountering a persistent "No installed app with label 'logs'" error in my Django project, even after seemingly correcting the project structure and INSTALLED_APPS. I've tried all the common solutions, but the issue remains.

Python Version: 3.13.2

Django Version: 5.1.6

os: Windows 11

Project Structure

router_log_project/
    manage.py
    router_log_project/  (Inner project directory)
        __init__.py
        settings.py
        urls.py
        wsgi.py
    logs/
        __init__.py
        models.py
        views.py
        migrations/
            __init__.py
    env/  
    db.sqlite3

settings.py

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'logs', 
]

Steps already taken

Double-checked INSTALLED_APPS: I've meticulously verified the spelling of 'logs' in INSTALLED_APPS.

Verified __init__.py files: I've confirmed that __init__.py files exist in both the inner router_log_project directory and the logs app directory.

Restarted the development server: I've restarted the server multiple times after making changes.

Deactivated/reactivated the virtual environment: I've tried creating a fresh virtual environment.

Вернуться на верх