[uWSGI] uwsgi_admin

Yann Malet yann.malet at gmail.com
Fri Jan 22 15:29:18 CET 2010


Thanks for sharing the reasoning behind the nature of the uWSGI python
module. By magic I was not emplying that it was messy just that I did not
understand how it works.

I will test the the new installation procedure once you have it ready.
 And I will add the try except block next time i work on this uwsgi_admin

Except this "small" issue do you agree with the new repository layout I have
done for uwsgi_admin ?


On Fri, Jan 22, 2010 at 9:55 AM, Roberto De Ioris <roberto at unbit.it> wrote:

> Il giorno ven, 22/01/2010 alle 09.43 -0400, Yann Malet ha scritto:
> > Do you think that the uwsgi could be compiled and installed using
> > (distutils and setuptools) ?
> yes, it is very simple, i will look at it soon
> > I am not a big fan of this module being "auto-magically" added at
> > runtime. Could you let me know what is the reasoning behind this
> > "magic" ? This remembers me  this :
> > http://code.djangoproject.com/wiki/RemovingTheMagic
> the uwsgi module is a "gate" to the internals of the server (its
> memory), there are no other way to permit this (without implementing a
> complex/very slow ipc mechanism).
> i have added the --no-server option to the binary so users can write
> script that use the uwsgi embedded functions without spawning the whole
> stack.
> It is not "magic" (or messy) is a low-level way for doing things that a
> python app cannot do.
> But it would be interesting to add a uwsgi.py that mimic the embedded
> functions to talk to a remote uwsgi compliant server (ehm, better to
> call it pyuwsgi.py to avoid namespace disaster)
> Returning to the uwsgi_admin, it is better to put all the code under a
> try: except: block so users that does not use the uwsgi server locally
> can still maintain the uwsgi-admin code without errors:
> try:
>        import uwsgi
>        .......
> except:
>        """graphics to show for non-uwsgi environment"""
> --
> Roberto De Ioris <roberto at unbit.it>
> Unbit
> _______________________________________________
> uWSGI mailing list
> uWSGI at lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.unbit.it/pipermail/uwsgi/attachments/20100122/6d0c47fb/attachment-0001.htm 

More information about the uWSGI mailing list