10
This is an intentional choice within Django:
Regardless of the value of the DEBUG setting in your configuration file, all Django tests run with DEBUG=False. This is to ensure that the observed output of your code matches what will be seen in a production setting.
Ref: https://docs.djangoproject.com/en/dev/topics/testing/#other-test-conditions
3
Use --settings
option when running tests
python manage.py test --settings=mysite.settings_local
- [Django]-Howto use django regular inheritance in models and forms
- [Django]-Converting only one entry of django model object to json
- [Django]-Using Django with MySQL for storing and looking up Large DNA Microarray Results
- [Django]-How do you access/configure summaries/snippets in Django Haystack
- [Django]-Model inheritance in django-nonrel on app engine
1
I recall reading that you’re not supposed to change settings values in any way at runtime, it causes problems.
- [Django]-Using HttpResponseRedirect, but browser is not showing correct URL
- [Django]-Django not working with supervisor, getting [Errno 88] Socket operation on non-socket
- [Django]-How to show list of foreign keys in Django admin?
- [Django]-Csrf issue from node js to django
- [Django]-How to get name of file in request.POST?
Source:stackexchange.com