Re: Full and relative URL.

2011-01-23 Thread Kyle Terry
proxy_set_header Host $host; That should do the trick. Kyle Terry | www.kyleterry.com On Sun, Jan 23, 2011 at 9:22 PM, Chris McDonough wrote: > Have nginx pass through the Host header to Pyramid. The right URLs will > be generated. > > - C > > On Sun, 2011-01-23 at 15:35 -0800,

Re: Full and relative URL.

2011-01-23 Thread Chris McDonough
Have nginx pass through the Host header to Pyramid. The right URLs will be generated. - C On Sun, 2011-01-23 at 15:35 -0800, gins...@gmail.com wrote: > Hi! > static_url() generates a fully qualified URL for a static asset. But > for applications behind of nginx acting as reverse proxy, I need a

Full and relative URL.

2011-01-23 Thread gins...@gmail.com
Hi! static_url() generates a fully qualified URL for a static asset. But for applications behind of nginx acting as reverse proxy, I need a relative URL, without the hostname and port. For example the hostname generated in the url is 127.0.0.1, and not the real hostname. Must be a function generati

Re: Requirements for Pyramid 1.0b1

2011-01-23 Thread Rocky Burt
FYI I created DistChecker for almost this exact reason... http://pypi.python.org/pypi/DistChecker/ Typically what I end up doing is going into the directory containing my egg and simply going: distchecker compare_sdist --with-python=/path/to/virtualen

Re: Using Mako Templates in Pyramid with Google App Engine

2011-01-23 Thread Rocky Burt
I think it's often easy to forget just how unnecessary the Paster portion of configuration really is ;) -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this

Re: stucco_auth 0.1e-6 released

2011-01-23 Thread Rocky Burt
After much discussion between Daniel and myself we both preferred this non-threadlocal approach. I've tried to abstract this mechanism out into its own set of components which I encourage anyone to give a try. http://pypi.python.org/pypi/Khufu-SQLAHelper Hopefully other people can get use out

Re: About pyramid_formish

2011-01-23 Thread Kent Tenney
svn://svn.zope.org/repos/main/Sandbox/J1m/jsonform ? On Fri, Jan 21, 2011 at 2:13 PM, Chris McDonough wrote: > Analysis paralysis on the form stuff so far.  We'll have to see how it > all goes.  pyramid_formish has "evil XML" in it, so it's unlikely to be > recommended as official. > > - C > > O