Giovanni Barillari

Results 210 comments of Giovanni Barillari

So, I'm not sure I got this correctly. When you say you get blank pages you mean in the browser? 'cause the strange thing to me is that the logs...

Closing this due to inactivity

Hi @simonw, the `app` argument should be the import location of your application, not the actual object. The actual load of the app will be handled by Granian itself. You...

@simonw using `Granian` interface directly is absolutely possible, but as I said, the `app` argument shouldn't be your application instance, but a string with the importable location of your application...

@simonw considering how granian is designed, is not possible to directly pass an application instance to the server, as it would require that every loaded object should be pickable due...

@simonw wait, I got an idea to get this working with the current implementation. The `serve` method of `Granian` class actually accepts a `target_loader` parameter: https://github.com/emmett-framework/granian/blob/9265a03416a536acb37ca6073292a0c88b23ab47/granian/server.py#L303 You can use this...

@simonw probably wrapping works and is a cleaner solution. Eg: ```python from datasette.app import Datasette from granian import Granian def app_loader(kwargs): def load_app(target): if target != "dyn": raise RuntimeError("Should never...

@GlenDC @achaayb @Andrew-Chen-Wang just to give you all a quick update: I'm currently in the process of moving to a different country, thus I gonna postpone discussion on this to...

> How about if Granian had some kind of mechanism where you could specify a pickle-able object which should be passed to each of the workers, specifically designed for this...

@novichikhin what's the error? Do you have a stack trace?