Django WSGI entrypoint change
The Horizon project has changed the old django.wsgi entrypoint to the wsgi.py file in the openstack_dashboard module. The following can be seen in the horizon logs: WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This file is a legacy naming from before Django 1.4 and an importable 'wsgi.py' is now the default. This file will be removed in the T release cycle. Change-Id: Iee2b3e78768dd55d5cd1629d64c9d2ff9d0d4b93
This commit is contained in:
parent
ae106fb88b
commit
15bd50c2f1
@ -4,7 +4,7 @@ class horizon::params {
|
||||
include ::openstacklib::defaults
|
||||
|
||||
$logdir = '/var/log/horizon'
|
||||
$django_wsgi = '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'
|
||||
$django_wsgi = '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'
|
||||
$manage_py = '/usr/share/openstack-dashboard/manage.py'
|
||||
$wsgi_application_group = '%{GLOBAL}'
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Django WSGI entrypoint changed from django.wsgi to wsgi.py file as deprecated
|
||||
by the Horizon project.
|
@ -39,7 +39,7 @@ describe 'horizon::wsgi::apache' do
|
||||
:redirectmatch_status => 'permanent',
|
||||
:redirectmatch_regexp => '^/$',
|
||||
:redirectmatch_dest => platforms_params[:root_url],
|
||||
:wsgi_script_aliases => { platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' },
|
||||
:wsgi_script_aliases => { platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py' },
|
||||
:wsgi_process_group => platforms_params[:wsgi_group],
|
||||
:wsgi_daemon_process => platforms_params[:wsgi_group],
|
||||
:wsgi_application_group => '%{GLOBAL}',
|
||||
@ -83,7 +83,7 @@ describe 'horizon::wsgi::apache' do
|
||||
:redirectmatch_status => 'temp',
|
||||
:redirectmatch_regexp => '^/$',
|
||||
:redirectmatch_dest => platforms_params[:root_url],
|
||||
:wsgi_script_aliases => { platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' },
|
||||
:wsgi_script_aliases => { platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py' },
|
||||
:wsgi_process_group => platforms_params[:wsgi_group],
|
||||
:wsgi_daemon_process => platforms_params[:wsgi_group],
|
||||
:wsgi_application_group => '%{GLOBAL}',
|
||||
@ -151,7 +151,7 @@ describe 'horizon::wsgi::apache' do
|
||||
:wsgi_daemon_process => 'horizon-ssl',
|
||||
:wsgi_application_group => '%{GLOBAL}',
|
||||
:wsgi_script_aliases => {
|
||||
platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'
|
||||
platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'
|
||||
}
|
||||
)}
|
||||
|
||||
@ -171,7 +171,7 @@ describe 'horizon::wsgi::apache' do
|
||||
:wsgi_daemon_process => platforms_params[:wsgi_group],
|
||||
:wsgi_application_group => '%{GLOBAL}',
|
||||
:wsgi_script_aliases => {
|
||||
platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'
|
||||
platforms_params[:root_url] => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'
|
||||
}
|
||||
)}
|
||||
end
|
||||
@ -222,7 +222,7 @@ describe 'horizon::wsgi::apache' do
|
||||
{ 'alias' => '/static', 'path' => '/tmp/horizon/static' }
|
||||
],
|
||||
:wsgi_script_aliases => {
|
||||
'/' => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'
|
||||
'/' => '/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py'
|
||||
}
|
||||
)}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user