[Answered ]-How to stop Django "app not found" error?

2👍

Okay, I found what was going wrong. I ran python manage.py shell and tried to import teachline.grading.models. It turned out I had some problems with importing modules. I fixed those and now python manage.py sql grading works fine.

0👍

Do you have a directory which contains teachline in your PYTHONPATH environment variable? It may be necessary to export PYTHONPATH="." to make things work.

👤nkrkv

0👍

Does the file teachline/grading/__init__.py file exist in the pythonpath.

👤lprsd

0👍

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'teachline.courses',
    'teachline.grading',
)

Try to add just ‘grading’

INSTALLED_APPS = (
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.sites',
        'django.contrib.admin',
        'courses',
        'grading',
    )

Leave a comment