[Django] #16718: check_for_language fails when django are imported from zip file

9 views
Skip to first unread message

Django

unread,
Aug 29, 2011, 4:19:31 AM8/29/11
to django-...@googlegroups.com
#16718: check_for_language fails when django are imported from zip file
------------------------+------------------------------
Reporter: jsantana@… | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: Translations
Version: 1.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------+------------------------------
If you import django from a zip file and some i18n utils fail (i.e
django.views.i18n.javascript_catalog)

Steps:

1. import django as zip file
2. setup a javascript translation different from default with some
strings, i.e locale/es/LC_MESSAGES/djangojs.{po,mo}
3. setup javascript_catalog view
4. make a request like http://server/i18n/?language=es

- expected result:
spanish catalog should be returned in javascript file

- result:
default language catalog is returned in javascript file

--
Ticket URL: <https://code.djangoproject.com/ticket/16718>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 4, 2011, 4:15:26 AM9/4/11
to django-...@googlegroups.com
#16718: check_for_language fails when django are imported from zip file
--------------------------------------+------------------------------
Reporter: jsantana@… | Owner: nobody
Type: Bug | Status: closed
Milestone: | Component: Translations
Version: 1.2 | Severity: Normal
Resolution: duplicate | 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 aaugustin):

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


Comment:

Django can't be packaged as a Python egg, in particular because it's hard
to retrieve the templates and translation files.

If I understand correctly, by "importing from a zipfile", you mean
"running from an egg", so it's a duplicate of #596.

--
Ticket URL: <https://code.djangoproject.com/ticket/16718#comment:1>

Django

unread,
May 30, 2012, 9:16:21 PM5/30/12
to django-...@googlegroups.com
#16718: check_for_language fails when django are imported from zip file
------------------------------+--------------------------------------
Reporter: jsantana@… | Owner: nobody
Type: Bug | Status: closed
Component: Translations | Version: 1.2
Severity: Normal | Resolution: duplicate
Keywords: egg zip | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by wiml@…):

* keywords: => egg zip


Comment:

Replying to [comment:1 aaugustin]:

> it's a duplicate of #596.


I think it is actually a duplicate of #8280.

The Django installation docs make reference to installing as an egg, there
are various accepted patches for running from a zip file (eg #8238 and the
aforementioned #8280), and apparently it is (was?) the preferred (only?)
way to run Django on Google App Engine. - see
https://developers.google.com/appengine/articles/django10_zipimport as
well as other comments in those bugs.

--
Ticket URL: <https://code.djangoproject.com/ticket/16718#comment:2>

Reply all
Reply to author
Forward
0 new messages