Skip to content

Commit 006ac26

Browse files
committed
add asgi project config template
1 parent c739946 commit 006ac26

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
ASGI config for {{ project_name }} project.
3+
4+
It exposes the ASGI callable as a module-level variable named ``application``.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/asgi/
8+
"""
9+
10+
import os
11+
12+
from django.core.asgi import get_asgi_application
13+
14+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
15+
16+
application = get_asgi_application()

0 commit comments

Comments
 (0)