when use @postfork, I am encounter below error. I am using uwsgi 2.0.10

ImportError: No module named uwsgidecorators

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



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

Reply via email to