News for hackers. Stuff that matters.
Re:Useful Python Libraries for Startups by tuyguntn on Tuesday June 30, 2015 @03:04PM (#9807675)
If only for testing I would agree with whitenoise, but in case of startup and you are already serving static files why do you want to replace NGINX with Whitenoise? any specific reason for Whitenoise, maybe it is better/simpler/efficient than NGINX?
Re:Useful Python Libraries for Startups by zallarak on Tuesday June 30, 2015 @03:09PM (#9807710)
Good question. We were not using nginx to begin with (rather, serving it through our app server). It was an alternative to nginx and is super easy to set up: https://github.com/evansd/whitenoise#quickstart-for-other-ws...
Re:Useful Python Libraries for Startups by tuyguntn on Tuesday June 30, 2015 @03:16PM (#9807749)
If you are using python code for serving static files, probably you are not seeing lots of traffic yet, I guess you should reconsider your decision and watch "Simple made Easy"[1] talk by Rich Hickey

[1] http://www.infoq.com/presentations/Simple-Made-Easy

Re:Useful Python Libraries for Startups by danneu on Tuesday June 30, 2015 @06:23PM (#9808795)
Looks like Whitenoise can gzip your assets, add a hash to the filename, serve them with far-future headers, and then selectively serve the gzipped version based on Accept-Encoding headers.

Put that behind Cloudflare and your origin server is only hit when an edge location is warming its cache.

Sounds Hickey-tier simple to me, especially compared to your advice of "just use and configure Nginx".

Re:Useful Python Libraries for Startups by carapace on Tuesday June 30, 2015 @04:24PM (#9808197)