Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added load_asgi_app method to CLI class #353

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

makondratev
Copy link

In compiled projects(using PyInstaller for example) application must be imported during compilation. So you can redefine only this method (like gunicorn's load_wsgiapp) instead of copying whole run() method and rewriting only one line. Hope this will help everyone who compile python projects with daphne server.

Copy link
Member

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @makondratev. This looks good thanks.

I'll have a look at the equivalent in gunicorn and this about whether we need docs and tests, but seems an easy addition for the next release.

@makondratev
Copy link
Author

Thanks a lot! That would be great!

Base automatically changed from master to main March 3, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants