Skip to content

Could you please clarify this deprecation warning?! #915

@exoosh

Description

@exoosh
.local/lib/python3.9/site-packages/hug/api.py:500: DeprecatedWarning: Call to deprecated function __init__(...). API >
  module.__hug_wsgi__ = module.__hug__.http.server()

I was starting the app with Gunicorn and the wsgi_app for Gunicorn was set to app:__hug_wsgi__.

I should mention that I do have the following in my .py file such that I can start it standalone:

if __name__ == "__main__":
    hug.API(__name__).http.serve()

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions