docs translation import errors

Bug #1486139 reported by David Lyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
David Lyle

Bug Description

When building docs, there are a ton of errors in this format:

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.

Starting in Django 1.7, standalone scripts, such as a sphinx build require that django.setup() be called first. See:
https://docs.djangoproject.com/en/1.8/releases/1.7/#standalone-scripts

This should be added to the horizon/docs/source/conf.py

Doing so eliminates the errors.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/214277

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/214277
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=49ae7f9eeb2b84c89a185f4c3595bd7e706c5b84
Submitter: Jenkins
Branch: master

commit 49ae7f9eeb2b84c89a185f4c3595bd7e706c5b84
Author: David Lyle <email address hidden>
Date: Tue Aug 18 10:54:05 2015 -0600

    Fix docs translation import errors

    When building docs, there are a ton of errors in this format:

    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.

    Starting in Django 1.7, standalone scripts, such as a sphinx build
    require that django.setup() be called first. See:
    https://docs.djangoproject.com/en/1.8/releases/1.7/#standalone-scripts

    This should be added to the horizon/docs/source/conf.py

    Doing so eliminates the errors.

    Closes-Bug: #1486139
    Change-Id: I0871be3d60d4d78cb430fabdb5725832559191d7

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-3 → 8.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.