django testing with local settings

前端 未结 3 1512

Python 2.7 Django 1.2

I am getting odd local_settings behavior when I am testing a Django app. I have my /settings.py set up like this:<

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 09:42

    Use --settings option when running tests

    python manage.py test --settings=mysite.settings_local
    

提交回复
热议问题