Re: [Django] #25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.

2015-11-23 Thread Django
#25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.
---+--
 Reporter:  atarkowska |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  HTTP handling  |  Version:  1.8
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--

Comment (by shaib):

 Replying to [comment:4 atarkowska]:
 > and I am using from django.utils.translation import ugettext_lazy as _

 The traceback you quote claims otherwise.

 Also, it has been mentioned to you that Trac is not a support channel. The
 place to ask "is this a bug" questions, when you are not sure what is
 wrong, is the django-users mailing list or the #django IRC channel. This
 ticket has been closed, and you should expect no more answers here.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.28537bc2f78cbdb1c3dccc112ec33cae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.

2015-11-23 Thread Django
#25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.
---+--
 Reporter:  atarkowska |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  HTTP handling  |  Version:  1.8
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--

Comment (by atarkowska):

 and I am using from django.utils.translation import ugettext_lazy as _

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.40d385f9df41592ef0c5196126184a4b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.

2015-11-23 Thread Django
#25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.
---+--
 Reporter:  atarkowska |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  HTTP handling  |  Version:  1.8
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--

Comment (by atarkowska):

 I went one step forward and now got


 {{{
 Traceback (most recent call last):
 File "c:\OMERO.server\lib\python\omeroweb\webclient\views.py", line 197,
 in login form = LoginForm(data=request.POST.copy())
 File "c:\OMERO.server\lib\python\omeroweb\webadmin\forms.py", line 52, in
 __init__ super(LoginForm, self).__init__(*args, **kwargs)
 File "c:\OMERO.server\lib\python\omeroweb\custom_forms.py", line 35, in
 __init__ super(NonASCIIForm, self).__init__(*args, **kwargs)
 File "C:\Python27\lib\site-packages\django\forms\forms.py", line 129, in
 __init__ self.label_suffix = label_suffix if label_suffix is not None else
 _(':')
 File "C:\Python27\lib\site-packages\django\utils\translation\__init__.py",
 line 84, in ugettext return _trans.ugettext(message)
 File "C:\Python27\lib\site-
 packages\django\utils\translation\trans_real.py", line 327, in ugettext
 return do_translate(message, 'ugettext')
 File "C:\Python27\lib\site-
 packages\django\utils\translation\trans_real.py", line 304, in
 do_translate _default = _default or translation(settings.LANGUAGE_CODE)
 File "C:\Python27\lib\site-
 packages\django\utils\translation\trans_real.py", line 206, in translation
 _translations[language] = DjangoTranslation(language)
 File "C:\Python27\lib\site-
 packages\django\utils\translation\trans_real.py", line 116, in __init__
 self._add_installed_apps_translations()
 File "C:\Python27\lib\site-
 packages\django\utils\translation\trans_real.py", line 164, in
 _add_installed_apps_translations "The translation infrastructure cannot be
 initialized before the " \nAppRegistryNotReady: 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.
 }}}

 It looks very simmilar to
 https://groups.google.com/forum/?utm_medium=email_source=footer#!msg
 /django-users/jk_BrQY_S5c/1cWN6KF9qNIJ although I use wsgi_isapi rather
 then fastcgi. Calling setup like https://github.com/aleksandra-
 
tarkowska/openmicroscopy/blob/iss_deploy_improvement/components/tools/OmeroPy/src/omero_web_iis.py
 cause IIS error

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.58a1096e2b0aa879ee5925a0b9221dd9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.

2015-11-23 Thread Django
#25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.
---+--
 Reporter:  atarkowska |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  HTTP handling  |  Version:  1.8
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--

Comment (by aaugustin):

 To expand on what Tim just said -- your deployment probably bypasses the
 official APIs for running Django on a WSGI server. As a consequence, in
 Django ≥ 1.7, `django.setup()` isn't called and you're seeing this
 exception.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.46a11afb30cf4abc9866d7672b395dea%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.

2015-11-23 Thread Django
#25800: IIS ISAPI request throws AppRegistryNotReady: Apps aren't loaded yet.
---+--
 Reporter:  atarkowska |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  HTTP handling  |  Version:  1.8
 Severity:  Normal |   Resolution:  invalid
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by timgraham):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => invalid
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Please see the
 [https://docs.djangoproject.com/en/stable/ref/applications/#troubleshooting
 Troubleshooting guide] which describes reasons why you would hit
 `AppRegistryNotReady`. As with #25607, please use our support channels at
 TicketClosingReasons/UseSupportChannels as the report doesn't demonstrate
 that Django is at fault. Thanks!

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.fbbafbb62b3780734d9320b06cb4a166%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.