unauthenticated_userid() doesn't work until round-trip?

2012-11-17 Thread Zak
I'm trying to get the unauthenticated_userid immediately after calling remember(), but it's always None. Does unauthenticated_userid not get created until a full round-trip request is made with the user? How can I get the unauthenticated_userid immediately? Here is the code I'm using headers =

Re: unauthenticated_userid() doesn't work until round-trip?

2012-11-17 Thread Gael Pasgrimaud
On 17/11/2012 13:23, Zak wrote: I'm trying to get the unauthenticated_userid immediately after calling remember(), but it's always None. Does unauthenticated_userid not get created until a full round-trip request is made with the user? How can I get the unauthenticated_userid immediately? Here

pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread vijay
Hello, I am changing my pylons application environment from apache to nginx. I am able to start the pylons with nginx, but while displaying page its not able to access any of the css, script, image files. If anyone knows why this is happening. It will be a great help for us. Thanks, Vijay

Re: pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread León Domingo
Hi Vijay, Your NGINX configuration file will give us more information. How do you communicate nginx with pyramid? Gunicorn? That's my choice for deployment (NGINX+gunicorn) Regards, León Domingo Ender - Factoría de Software leon.domi...@ender.es jestre...@ender.es Avda. Cerro del Águila, 7. S23

Pyramid 1.4: Route predicate mismatch and response codes

2012-11-17 Thread Vlad K.
I'm not sure if this is currently a bug because of missing implementation or something, or I'm missing some configuration. Basically, when a route is matched by URL pattern but fails other predicates like request_method or accept, it should respond with 405 and 406 (for those two), not with

Re: pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread pinakee
Hi Leon, We are using paster with pylons. Nginx acts as a proxy (proxy pass and reverse proxy). The configuration file for nginx is as per the directives for reverse proxy. This has earlier worked with apache but now we are facing issues with nginx as mentioned in vijay's mail. Regards,

Re: pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread Andi
sorry, but your description is zero helpful. if you can reproduce the problem locally set logging to debug and see the rewrites. or send the config :) andi (sent right out of my head) On 17.11.2012, at 19:04, pina...@vvidiacom.com wrote: Hi Leon, We are using paster with pylons. Nginx

RE: pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread Pinakee Biswas
Hi Andi, Thanks for the response. PFA the nginx configuration file. Please let us know if any other info would be needed. Looking forward to your response and help… Thanks, Pinakee From: pylons-discuss@googlegroups.com [mailto:pylons-discuss@googlegroups.com] On Behalf

Re: pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread Carlos Daniel Ruvalcaba Valenzuela
The answer is simple, your current setup is not serving any css, js or any other static files, set nginx to serve your static files folder. For example, add inside your server section: location /static { alias /path/to/my/static/files; expires 1d; } On Sat, Nov

Re: pylons + nginx error 404 not found for all styles, scripts, images

2012-11-17 Thread pinakee
Hi Carlos, Thanks for your response. We would follow your suggestion. We are kind of new to nginx. Earlier we were using apache. We were using apache as proxy and paster was serving resources/data. Apache wasn't used for serving the resources. We were trying to have similar setup with nginx