Friday, March 26, 2021

Re: Have you experienced the thing I have done like the following.

My wsgi.py content is like this

"""
WSGI config for django_app project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application
"""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_app.settings')
"""
os.environ["DJANGO_SETTINGS_MODULE"] = "django_app.settings"

application = get_wsgi_application()

2021년 3월 27일 토요일 오전 9시 9분 25초 UTC+9에 Kasper Laudrup님이 작성:
On 26/03/2021 13.34, Sangbom Suhk wrote:
> ModuleNotFoundError: No module named 'django_app'
>

Without being an expert on the details, it seems like the WSGI module
cannot find your Django application.

What's in your .wsgi file?

Maybe this could help:

https://www.thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/84a7f5f1-78d5-4e2c-a459-cd182e53a614n%40googlegroups.com.

No comments:

Post a Comment