mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
28 lines
619 B
Python
28 lines
619 B
Python
"""
|
|
WSGI config for archivebox 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/2.1/howto/deployment/wsgi/
|
|
"""
|
|
|
|
import os
|
|
|
|
from archivebox.config import setup_django
|
|
|
|
setup_django(in_memory_db=False, check_db=True)
|
|
|
|
|
|
from django.core.asgi import get_asgi_application
|
|
from channels.routing import ProtocolTypeRouter
|
|
|
|
|
|
django_asgi_app = get_asgi_application()
|
|
|
|
application = ProtocolTypeRouter(
|
|
{
|
|
"http": django_asgi_app,
|
|
# Just HTTP for now. (We can add other protocols later.)
|
|
}
|
|
)
|