On 14/07/15 14:59, Jerry OELoo wrote:
when use @postfork, I am encounter below error. I am using uwsgi 2.0.10

ImportError: No module named uwsgidecorators

I've seen this happen when I install uwsgi globally, but am running python within a virtualenv.

You can install the uwsgidecorators module separately with pip...

--
Curtis


On Thu, Jul 9, 2015 at 6:59 PM, Roberto De Ioris <[email protected]> wrote:

Thanks for comments.

Currently, I do not want to use SQLAlchemy to import another library.
So there is no other way?

It is nothing that requires specific server support. Just remember to open
the connection after each fork() (otherwise you will clobber the socket).

The @postfork decorator could help. Otherwise use --lazy-apps to
reinitialize the app for each worker.



--
Roberto De Ioris
http://unbit.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi



_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to