Skip to content

Added load_asgi_app method to CLI class#353

Merged
carltongibson merged 2 commits intodjango:mainfrom
makondratev:load_asgi_app
May 7, 2025
Merged

Added load_asgi_app method to CLI class#353
carltongibson merged 2 commits intodjango:mainfrom
makondratev:load_asgi_app

Conversation

@makondratev
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

Thanks a lot! That would be great!

Base automatically changed from master to main March 3, 2021 18:20
@carltongibson carltongibson merged commit b8b4d2a into django:main May 7, 2025
11 checks passed
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