dimanche 18 décembre 2016

Override settings.py for testing

I have my project settings in settings.py file. There are database names, user names, host names etc. defined there. In project files I do import settings and then use the constants where needed like settings.HOST. For testing I would like to use different settings. How should I override the settings? I am not using django.

Aucun commentaire:

Enregistrer un commentaire