Re:Ask HN: Host multiple flask and django apps on single server
by gingerjoos on Sunday July 01, 2012 @01:01PM
(#4185328)
Thanks, bmelton. Decided to go with nginx + gunicorn. Was a little hesitant to use virtualenv, will go ahead and use it based on your recommendation. Thanks again! :)
Re:Ask HN: Host multiple flask and django apps on single server
by bmelton on Monday July 02, 2012 @09:35AM
(#4188778)
It took me awhile to get used to it, but there's really no reason not to use virtualenv.
The more you use it, the more you have to use it. I had two projects with different authentication mechanisms that were unfortunately named the same thing. I accidentally deployed one without virtualenv and spent the next whole day figuring out what happened.
Virtualenv is a life-saver, and it's so easy to do that you might as well just always do it everywhere.
Re:Ask HN: Host multiple flask and django apps on single server
by gingerjoos on Tuesday July 10, 2012 @09:38AM
(#4223661)
Just hit a similar situation at work and realised why I had to use it. Had a django app called taxonomy in a project, couldn't use the same name in another django project. Now I definitely have to use it!
In addition to what's already been mentioned, you'll definitely want to be using virtualenv for portability. Being able to maintain different libraries for different apps is essential, and virtualenv does a great job of keeping things isolated.