Debug Unit tests for djnago

Hello,

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?

Thank you in advance.

Please sign in to leave a comment.