14 lines
314 B
Python
14 lines
314 B
Python
import os
|
|
|
|
import django
|
|
from channels.http import AsgiHandler
|
|
from channels.routing import ProtocolTypeRouter
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'SMS.settings')
|
|
django.setup()
|
|
|
|
application = ProtocolTypeRouter({
|
|
"http": AsgiHandler(),
|
|
# Just HTTP for now. (We can add other protocols later.)
|
|
})
|