#15084: Unnecessary imports lead to ImportError
--------------------------------------+------------------------------------
Reporter: vanschelven | Owner: nobody
Type: Bug | Status: reopened
Component: Internationalization | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by aaugustin):
IMO you shouldn't do translations at compile time; you should use
`ugettext_lazy` instead of `ugettext`.
It's a bit like running SQL at compile time: you can get away with it if
you're lucky, but it's a bad idea.
--
Ticket URL: <https://code.djangoproject.com/ticket/15084#comment:21>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.