Re: AttributeError: 'module' object has no attribute 'myapp'

2007-04-02 Thread Vinay Sajip
> The problem is caused by the way that Django loads and indexes > applications. I haven't tried putting code in __init__.py, but it > certainly doesn't surprise me that it has caused you difficulties. > > > If this is not the > > case, where > > is the best place to do the kind of initialisation

Re: AttributeError: 'module' object has no attribute 'myapp'

2007-03-31 Thread Russell Keith-Magee
On 3/30/07, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > Now, why should this be? The traceback is mystifying to me - can > anyone shed any > light? The problem is caused by the way that Django loads and indexes applications. I haven't tried putting code in __init__.py, but it certainly doesn't sur

AttributeError: 'module' object has no attribute 'myapp'

2007-03-29 Thread Vinay Sajip
jango/utils/translation/ trans_real.py", line 255, in gettext _default = translation(settings.LANGUAGE_CODE) File "/usr/lib/python2.4/site-packages/django/utils/translation/ trans_real.py", line 184, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File &