S SmartDocs
Série: Ricky python 16 lignes · Mis à jour 2026-01-16

asgi.py

Ricky/djangob/first_apps/asgi.py

"""
ASGI config for first_apps project.

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

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

import os

from django.core.asgi import get_asgi_application

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

application = get_asgi_application()

Articles liés