15👍
✅
Put this somewhere in your code. I have it in myapp/migrations/__init__.py
import logging
south_logger=logging.getLogger('south')
south_logger.setLevel(logging.INFO)
7👍
You can set SOUTH_TESTS_MIGRATE to False
in your setting.py
. This will disable all migrations during the tests. I know it’s not exactly what you want, but hope will be usefull
If this is False, South’s test runner integration will make the test
database be created using syncdb, rather than via migrations (the
default). Set this to False if you have migrations which take too long
to migrate every time tests run, but be wary if you rely on migrations
to do special things.
- Django load local json file
- How to access named url arguments in permissions with Django REST Framework?
- Django-allauth HTML email not send
- Django creating a form field that's read only using widgets
- Django-rest-auth: social login with google
3👍
import logging
import south.logger
logging.getLogger('south').setLevel(logging.CRITICAL)
I am able to set this in my setting/testing.py
Also if this is only bothering you with your django-nose tests add
nosetests --nologcapture
- Python Django requirements.txt
- How to serialize groups of a user with Django-Rest-Framework
- Check if a function has a decorator
- Conditionally Require Only One Field In Django Model Form
- Logging from Django under UWSGI
Source:stackexchange.com