When I run python ./manage.py sql grading my django site comes up with:
Error: App with label grading could not be found. Are you sure you INSTALLED_APPS setting is correct?
I have the app grading with __init__.py and everything, and my INSTALLED APPS is:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'teachline.courses',
'teachline.grading',
)
Why isn’t this working?
Okay, I found what was going wrong. I ran
python manage.py shelland tried toimport teachline.grading.models. It turned out I had some problems with importing modules. I fixed those and nowpython manage.py sql gradingworks fine.