Commit f1869ef5 by Chif Gergő

Add daphne dep, to run asgi, configure asgi

parent 6329bd43
...@@ -24,6 +24,7 @@ celery = {extras = ["redis"],version = "*"} ...@@ -24,6 +24,7 @@ celery = {extras = ["redis"],version = "*"}
django-celery-beat = "*" django-celery-beat = "*"
gunicorn = "*" gunicorn = "*"
psycopg2-binary = "*" psycopg2-binary = "*"
daphne = "*"
[requires] [requires]
python_version = "3.6" python_version = "3.6"
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "a04cb23a793883e70c95ce6b8da6af103c1ac00bf2ce652c1f79cccbb6db3cf9" "sha256": "ed429ec8b4027cb4b286f83f5010242e1a5f6cb0e40c6160b41b518ce4a69eb6"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
"sha256:1ca46d7419103958bbc9576fb7ba3b25b053006e22058bc97084ee1a7d44f4ba", "sha256:1ca46d7419103958bbc9576fb7ba3b25b053006e22058bc97084ee1a7d44f4ba",
"sha256:aa64840015709bbc9daa3c4464a4a4d437937d6cda10a9b51e913eb319272553" "sha256:aa64840015709bbc9daa3c4464a4a4d437937d6cda10a9b51e913eb319272553"
], ],
"index": "pypi",
"version": "==2.5.0" "version": "==2.5.0"
}, },
"debtcollector": { "debtcollector": {
...@@ -960,11 +961,11 @@ ...@@ -960,11 +961,11 @@
}, },
"flake8": { "flake8": {
"hashes": [ "hashes": [
"sha256:c69ac1668e434d37a2d2880b3ca9aafd54b3a10a3ac1ab101d22f29e29cf8634", "sha256:15e351d19611c887e482fb960eae4d44845013cc142d42896e9862f775d8cf5c",
"sha256:ccaa799ef9893cebe69fdfefed76865aeaefbb94cb8545617b2298786a4de9a5" "sha256:f04b9fcbac03b0a3e58c0ab3a0ecc462e023a9faf046d57794184028123aa208"
], ],
"index": "pypi", "index": "pypi",
"version": "==3.8.2" "version": "==3.8.3"
}, },
"httpie": { "httpie": {
"hashes": [ "hashes": [
......
"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
import os
import django
from channels.routing import get_default_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings.base")
django.setup()
application = get_default_application()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment