mercredi 27 avril 2016

How to debug unit tests in pycharm?

I have development environment set up on centos which actually is a headless server. I have pycharm installed on ubuntu from where I am trying to run and debug the unit tests for one of the apps. I am getting the error "django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time."

What can be the possible reason fro this and how can I fix it?

Aucun commentaire:

Enregistrer un commentaire