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.
- [Answered ]-Django administration styling: Change "Site administration" and subheadings
- [Answered ]-Tastypie alternative xml parser working with pypy
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',
)
- [Answered ]-How to get the Azure Webapp App Settings from Django
- [Answered ]-Django Querying MongoDB ObjectIds in views from json object
- [Answered ]-Django url dispatcher – wrong function
- [Answered ]-Django running in virtualenv gives syntax error after executing /usr/share/qgis… (not in virtualenv)
Source:stackexchange.com