
from designatedashboard import exceptions

# The name of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'domains'
# The name of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'project'
# The name of the panel group the PANEL is associated with.
PANEL_GROUP = 'dns'

ADD_EXCEPTIONS = {
    'recoverable': exceptions.RECOVERABLE,
    'not_found': exceptions.NOT_FOUND,
    'unauthorized': exceptions.UNAUTHORIZED,
}

# Python panel class of the PANEL to be added.
ADD_PANEL = (
    'designatedashboard.dashboards.project.dns_domains.panel.DNSDomains')


from designatedashboard import exceptions

# The name of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'domains'
# The name of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'project'
# The name of the panel group the PANEL is associated with.
PANEL_GROUP = 'dns'

ADD_INSTALLED_APPS = ['designatedashboard']

ADD_EXCEPTIONS = {
    'recoverable': exceptions.RECOVERABLE,
    'not_found': exceptions.NOT_FOUND,
    'unauthorized': exceptions.UNAUTHORIZED,
}

# Python panel class of the PANEL to be added.
ADD_PANEL = (
    'designatedashboard.dashboards.project.dns_domains.panel.DNSDomains')

Add ADD_INSTALLED_APPS to 'enabled' file
Add ADD_INSTALLED_APPS to 'enabled' file

Django looks for translation catalogs from directories in
INSTALLED_APPS. To display translations for designate-dashboard,
'designatedashboard' needs to be registered to INSTALLED_APPS.

(cherry picked from commit 1ed7893eb2ae10172a2f664fc05428c28c29099e)
Change-Id: Id5f0f0cb9cba455fededa622da04ed7bee313218
Closes-Bug: #1561202

  
  from designatedashboard import exceptions
  
  # The name of the panel to be added to HORIZON_CONFIG. Required.
  PANEL = 'domains'
  # The name of the dashboard the PANEL associated with. Required.
  PANEL_DASHBOARD = 'project'
  # The name of the panel group the PANEL is associated with.
  PANEL_GROUP = 'dns'
+ 
+ ADD_INSTALLED_APPS = ['designatedashboard']
  
  ADD_EXCEPTIONS = {
      'recoverable': exceptions.RECOVERABLE,
      'not_found': exceptions.NOT_FOUND,
      'unauthorized': exceptions.UNAUTHORIZED,
  }
  
  # Python panel class of the PANEL to be added.
  ADD_PANEL = (
      'designatedashboard.dashboards.project.dns_domains.panel.DNSDomains')
  
Add ADD_INSTALLED_APPS to 'enabled' file
## Code Before:

from designatedashboard import exceptions

# The name of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'domains'
# The name of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'project'
# The name of the panel group the PANEL is associated with.
PANEL_GROUP = 'dns'

ADD_EXCEPTIONS = {
    'recoverable': exceptions.RECOVERABLE,
    'not_found': exceptions.NOT_FOUND,
    'unauthorized': exceptions.UNAUTHORIZED,
}

# Python panel class of the PANEL to be added.
ADD_PANEL = (
    'designatedashboard.dashboards.project.dns_domains.panel.DNSDomains')

## Instruction:
Add ADD_INSTALLED_APPS to 'enabled' file
## Code After:

from designatedashboard import exceptions

# The name of the panel to be added to HORIZON_CONFIG. Required.
PANEL = 'domains'
# The name of the dashboard the PANEL associated with. Required.
PANEL_DASHBOARD = 'project'
# The name of the panel group the PANEL is associated with.
PANEL_GROUP = 'dns'

ADD_INSTALLED_APPS = ['designatedashboard']

ADD_EXCEPTIONS = {
    'recoverable': exceptions.RECOVERABLE,
    'not_found': exceptions.NOT_FOUND,
    'unauthorized': exceptions.UNAUTHORIZED,
}

# Python panel class of the PANEL to be added.
ADD_PANEL = (
    'designatedashboard.dashboards.project.dns_domains.panel.DNSDomains')
