I'm having trouble getting django-nose running.
Per the installation instructions, I installed by:
- Running
pip install django-nose
- Adding
'django_nose'
toINSTALLED_APPS
in settings.py (including at as the very last app, in case of possible app order issues) - Adding
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
to settings.py
When I run a test i.e. manage.py test
, I get:
django.db.utils.DatabaseError: no such table: django_content_type
I figured I need to sync the database. I am using South. When I use manage.py syncdb
, django_nose
doesn't show up in either the list of synced apps nor the list of "Not synced (use migrations)" apps.
Finally, when I try syncing with south anyhow, i.e. manage.py schemamigration django_nose --initial
, I get:
django.core.exceptions.ImproperlyConfigured: App with label django_nose is missing a models.py module.
I have Django 1.4 with South version 0.7.5 installed in a virtualenv.
What am I doing wrong? If nothing, how do I go about debugging this install problem?
nosetests
command from the project root,django_nose
now works. It still does not show in the app list when running./manage.py syncdb
, however. I have no idea why this works! – Sidon