openshift-nextgen

django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded

ⅰ亾dé卋堺 提交于 2020-07-05 07:17:37
问题 The scenario is, I cloned the Django code for OpenShift-V3 from here . When I run the code using python manage.py runserver getting an error as, django.core.exceptions.ImproperlyConfigured: WSGI application 'application' could not be loaded; Error importing module: 'application doesn't look like a module path I didn't add anything to the code and the required packages are already satisfied. 回答1: Go to django-ex/project/settings.py Change the line in settings.py as below WSGI_APPLICATION =

OpenShift Next Gen fails to mount persistent volume

别说谁变了你拦得住时间么 提交于 2020-01-04 06:23:10
问题 I'm trying to set up an app on OpenShift Online Next Gen and I need to store a small file at runtime and read it again during startup. The content of the file changes, so I cannot simply add it to my source code. My project is already up and running, all I need is persistent storage. So, I open the Web Console, click Browse->Storage and it says there are no volumes available. Same things if I go to Browse->Deployments and try to attach a volume. So, I logged in via cli and issued the

How to create new Building Configuration in OpenShift (for Django app)

徘徊边缘 提交于 2019-12-12 06:30:12
问题 I need to create a customized building configuration for my OpenShift(NextGen) Django application .Currently I am having django-psql-persistent configuration, which is comes with OpenShift(NextGen)-Django by default. 回答1: You can use the basic 'python' builder image available from the catalog when adding to a project from the web console. You can also use oc new-app python~<repo-url> from the command line using the oc client. For examples of a few Django applications set up to use a