diff options
Diffstat (limited to 'django/conf/project_template/project_name/asgi.py-tpl')
| -rw-r--r-- | django/conf/project_template/project_name/asgi.py-tpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/django/conf/project_template/project_name/asgi.py-tpl b/django/conf/project_template/project_name/asgi.py-tpl new file mode 100644 index 0000000000..a827238196 --- /dev/null +++ b/django/conf/project_template/project_name/asgi.py-tpl @@ -0,0 +1,16 @@ +""" +ASGI config for {{ project_name }} 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/{{ docs_version }}/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', '{{ project_name }}.settings') + +application = get_asgi_application() |
