S SmartDocs
Chuỗi bài: Ricky python 16 dòng · Cập nhật 2026-01-16

wsgi.py

Ricky/djangob/first_apps/wsgi.py

"""
WSGI config for first_apps 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/5.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_apps.settings')

application = get_wsgi_application()

Bài viết liên quan