Add ASGI support

Then in your project's `asgi.py` file use this:

```python
from configurations.asgi import get_asgi_application

application = get_asgi_application()
```
This commit is contained in:
Richard de Wit 2020-01-14 16:27:23 +01:00 committed by Finn-Thorben Sell
parent d89fe5a2cb
commit 1ada7d14f7
No known key found for this signature in database
GPG key ID: A78A03C25A3A3825

14
configurations/asgi.py Normal file
View file

@ -0,0 +1,14 @@
from . import importer
importer.install()
try:
from django.core.asgi import get_asgi_application
except ImportError: # pragma: no cover
from django.core.handlers.asgi import ASGIHandler
def get_asgi_application(): # noqa
return ASGIHandler()
# this is just for the crazy ones
application = get_asgi_application()