Added support for executing from interpreter.

For run from python interpreter as module use command:
`python -m daphne [all daphne arguments]`
This commit is contained in:
Sergey Klyuykov 2019-08-15 09:58:34 +10:00 committed by Carlton Gibson
parent 9838a173d7
commit d0e841b41d

3
daphne/__main__.py Normal file
View File

@ -0,0 +1,3 @@
from daphne.cli import CommandLineInterface
CommandLineInterface.entrypoint()