The following imports, among others, should be modified to accommodate the new project structure: - `from landoapi import ...` should be changed to `from lando.api.legacy import ...` - `from landoui import ...` should be changed to `from lando.ui.legacy import ...` - `from flask import current_app` should be changed to `from lando import settings` (in most cases, when `current_app.config` is needed)
Bug 1878767 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The following imports, among others, should be modified to accommodate the new project structure: - `from landoapi import ...` should be changed to `from lando.api.legacy import ...` - `from landoui import ...` should be changed to `from lando.ui.legacy import ...` - `from flask import current_app` should be changed to `from lando import settings` (in most cases, when `current_app.config` is needed) - `from flask import g` should be reimplemented to not use `g`
The following imports, among others, should be modified to accommodate the new project structure: - `from landoapi import ...` should be changed to `from lando.api.legacy import ...` - `from landoui import ...` should be changed to `from lando.ui.legacy import ...` - `from flask import current_app` should be changed to `from lando import settings` (in most cases, when `current_app.config` is needed) - `from flask import g` should be reimplemented to not use `g` - `from connexion import ...` should be reimplemented to use either equivalent methods or exceptions from Django
The following imports, among others, should be modified to accommodate the new project structure: - `from landoapi import ...` should be changed to `from lando.api.legacy import ...`. - `from landoui import ...` should be changed to `from lando.ui.legacy import ...`. - `from flask import current_app` should be changed to `from lando import settings` (in most cases, when `current_app.config` is needed). - `from flask import g` should be reimplemented to not use `g`. - `from connexion.lifecycle import ConnexionResponse` should be changed to `from django.http import HttpResponse` and reimplemented accordingly. - `from connexion import ProblemException` should be reimplemented to accommodate Django responses/exceptions.