Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Store previous string in po files #627
It's simply to check if settings are available just like the documentation of can_import_settings says.
This is what used to be implemented by importing django.util.traslation (which then load settings to know the value of USE_I18N)
I see in the file history that previously it used to try/catch and report the error condition but it seems to have been changed to simply trying to trigger settings loading. I suspect because the ImportError is handled at an upper level.