Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plus moyen d'importer les fixtures "aides" #2562

Closed
pierre-24 opened this issue Apr 16, 2015 · 2 comments
Closed

Plus moyen d'importer les fixtures "aides" #2562

pierre-24 opened this issue Apr 16, 2015 · 2 comments
Labels
C-Back Concerne le back-end Django S-BUG Corrige un problème
Milestone

Comments

@pierre-24
Copy link
Member

À mon avis, le passage à Django 1.7 a bousillé notre script. Je cite:

(zdsenv)pbeaujea@chim13-cptrx04:~/Devels/zds-site$ python load_factory_data.py fixtures/advanced/aide_tuto_media.yaml
Traceback (most recent call last):                                                                                                          
  File "load_factory_data.py", line 20, in <module>                                                                                         
    m = __import__(module_part)                                       
  File "/home/pbeaujea/Devels/zds-site/zds/utils/factories.py", line 2, in <module>
    from zds.utils.models import HelpWriting
  File "/home/pbeaujea/Devels/zds-site/zds/utils/models.py", line 12, in <module>
    from zds.utils.templatetags.emarkdown import emarkdown
  File "/home/pbeaujea/Devels/zds-site/zds/utils/templatetags/emarkdown.py", line 21, in <module>
    __MD_ERROR_PARSING = _(u'Une erreur est survenue dans la génération de texte Markdown. Veuillez rapporter le bug.')
  File "/home/pbeaujea/Devels/zds-site/zdsenv/local/lib/python2.7/site-packages/django/utils/translation/__init__.py", line 83, in ugettext
    return _trans.ugettext(message)
  File "/home/pbeaujea/Devels/zds-site/zdsenv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 325, in ugettext
    return do_translate(message, 'ugettext')
  File "/home/pbeaujea/Devels/zds-site/zdsenv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 306, in do_translate
    _default = translation(settings.LANGUAGE_CODE)
  File "/home/pbeaujea/Devels/zds-site/zdsenv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 209, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/home/pbeaujea/Devels/zds-site/zdsenv/local/lib/python2.7/site-packages/django/utils/translation/trans_real.py", line 189, in _fetch
    "The translation infrastructure cannot be initialized before the "
django.core.exceptions.AppRegistryNotReady: 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.

... Oups ^^

@Eskimon Eskimon added S-BUG Corrige un problème C-Back Concerne le back-end Django labels Apr 16, 2015
@Eskimon
Copy link
Contributor

Eskimon commented Apr 18, 2015

File "/home/pbeaujea/Devels/zds-site/zds/utils/templatetags/emarkdown.py", line 21, in <module>
    __MD_ERROR_PARSING = _(u'Une erreur est survenue dans la génération de texte Markdown. Veuillez rapporter le bug.')

Probablement ce morceau là qui gène...

@pierre-24
Copy link
Member Author

Corrigé par @firm1 <3 !!!

@pierre-24 pierre-24 added this to the Version 1.9 milestone Apr 23, 2015
@SpaceFox SpaceFox modified the milestones: Version 15.5.1, Version de développement May 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Back Concerne le back-end Django S-BUG Corrige un problème
Projects
None yet
Development

No branches or pull requests

3 participants