ALLOWED_HOSTS must be a list or tuble for django 4.x

Bug #1982199 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard Charm
Fix Committed
Undecided
Unassigned

Bug Description

This is a problem in zed now that django 4.x is available in kinetic.

Collecting and compressing static assets...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 259, in fetch_command
    app_name = commands[subcommand]
KeyError: 'collectstatic'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/manage.py", line 25, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 440, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 266, in fetch_command
    settings.INSTALLED_APPS
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 87, in __getattr__
    self._setup(name)
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 74, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 199, in __init__
    raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: The ALLOWED_HOSTS setting must be a list or a tuple.

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

Reviewed: https://review.opendev.org/c/openstack/charm-openstack-dashboard/+/850397
Committed: https://opendev.org/openstack/charm-openstack-dashboard/commit/c3f138ed27a507a9fd1d851ce78144b6fb845b99
Submitter: "Zuul (22348)"
Branch: master

commit c3f138ed27a507a9fd1d851ce78144b6fb845b99
Author: Corey Bryant <email address hidden>
Date: Tue Jul 19 11:47:02 2022 -0400

    ALLOWED_HOSTS must be list format for django 4.x

    Closes-Bug: #1982199
    Change-Id: I9f4251995481ca5970cb901c2fe27de3c5e31749

Changed in charm-openstack-dashboard:
status: In Progress → Fix Committed
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.