> hello,
>
> can i alter the static mappings/mounts via python?  modifying the list
> in uwsgi.opt dones't do anything (didn't really expect it too).
>
> my problem is wanting to define the django media directory in a
> generic way, but not knowing ahead of time where it is (vary by
> distro, not to mention the version of python currently running), and
> avoid a wrapper.
>
> any way to accomplish this?  i need the effect of:
>
> static-map = /media=$(import django; django.__path__)/contrib/admin/media/
>
> ... if you think in terms of bash command substitution.  maybe i am i
> approaching this wrong; is there a better solution escaping me? maybe
> a [python]command substitution would be useful ... wasn't there a way
> to dynamically generate a config, or completely configure via python
> ... so many options ...
>
>

What about

http://projects.unbit.it/uwsgi/wiki/Example#Configviapipe

Note: this approach is not-good after reloading (as the pipe will be
closed after the first round)
A better approach would be --ini exec://myscript.py as already requested
by other users.


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

Reply via email to