Commit Graph

7 Commits

Author SHA1 Message Date
Ivan Kolodyazhny 7e682a2d52 Remove depretaced django.wsgi
Change-Id: Ibf04a2f8ab899e957a1a28d4b8193c5c6086b247
2020-12-03 14:43:28 +02:00
Adrian Turjak 0ca736e5da Create new wsgi.py file and deprecate old file
Django 1.4 stopped creating django.wsgi files and the common
practice now for a while has been a wsgi.py since it is actually
python code, and should actually be importable.

Right now someone has to copy and rename the existing file if they
want to use it with a server like gunicorn.

This patch adds a new file in location that is importable via python
and adds a deprecation log to the old one.

This also updates the wsgi generation commands to instead  create
'horizon_wsgi.py' and have the apache conf generation also use that
or the default wsgi file.

Change-Id: I0f8bd16c8973ad23bcd8f73b54584dc69e5aed0c
Closes-Bug: #1763204
2018-05-15 01:41:01 +00:00
chao liu ff08536a04 Add django.wsgi to target of pep8
The django.wsgi file should be adjusted to meet pep8 standards
and apply pep8 check to django.wsgi automatically.

Change-Id: Iaee708e95b7209c5ff19129a98af37914f320bd
2017-11-17 07:16:55 +00:00
Richard Jones f7b271d4cd Normalise the path to resolve ../..
The "../.." fragment appears to be causing code in osprofiler/_utils.py
some issues, so we'll resolve it for them.

Change-Id: Ib443e7c64aae23246751df8769cdb1a2bd713e16
Partial-Bug: 1361235
2016-11-14 16:29:28 +11:00
Julie Pichon 686af384c2 Update WSGI app creation to be compatible with Django 1.7
This resolves the following error when trying to run Horizon:

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.

and is backwards-compatible with our currently supported versions (back
to 1.4).

Change-Id: I1e59f2bf6633a34cfe9230aa028f345e5fa70f94
Closes-Bug: #1382023
2014-10-16 13:57:45 +01:00
Gabriel Hurley 86764391bc Updated the django.wsgi file for devstack.
Change-Id: Ie651717806208f0ed7e045071599d71ca05c7fbe
2012-02-29 01:37:37 -08:00
Gabriel Hurley 052aa55d34 Unifies the project packaging into one set of modules.
There are no longer two separate projects living inside the horizon
repository. There is a single project now with a single setup.py,
single README, etc.

The openstack-dashboard/dashboard django project is now named
"openstack_dashboard" and lives as an example project in the
topmost horizon directory.

The "horizon/horizon" directory has been bumped up a level and now
is directly on the path when the root horizon directory is on
your python path.

Javascript media which the horizon module directly relies upon
now ships in the horizon/static dir rather than
openstack-dashboard/dashboard/static.

All the corresponding setup, installation, build, and env scripts
have been updated accordingly.

Implements blueprint unified-packaging.

Change-Id: Ieed8e3c777432cd046c3e0298869a9428756ab62
2012-02-29 00:20:13 -08:00