Django on Heroku running with Celery
gist.github.com
gist.github.com
Looks like the market for "push-hosting" django (suddenly?) increased much more than that existed for ruby frameworks.
AFAI am concerned, WebFaction, Linode, Slicehost, EC2 more than addressed what I wanted for a while.
Not that I don't like these or that they don't make my life simpler- They very much do. But is there room for so many? Do I just forget the Apache VirtualHost config details, as I may never need that again?
Thanks for your concern. :)
http://www.heroku.com/#run_anything
Also, how much RAM can a process use? What happens if I run Redis and fill it up with "a lot" of data?
From http://devcenter.heroku.com/articles/how-much-memory-does-a-... : Each dyno has 300MB of memory. If your process uses more than 300MB, the system will automatically kill your dyno and insert an entry into your logs.
It's also worth mentioning that unlike AppEngine the Heroku stack is a unix based environment (call "heroku run bash" and boom, you have shell access) and its components are all open sourced, so it should be relatively easy to move from there to a VPS if you ever need to.
Other than that, Heroku comes from multiple years of supporting Ruby (and some Node.js), their main page still states "Agile deployment for Ruby and Node.js", there's a lot of Rails/Sinatra/Rack specific stuff in their docs, and the Heroku command line tool is a Ruby Gem. In other words, this is not an "Heroku for Django", like Djangy was, it's become more like an "Heroku for anything, with a strong culture of Ruby", and IMO that's extremely exciting: we're talking about access to multiple languages and tools on the same easy-to-use cloud.
We're flattered to see everyone shift gear and try our approach. But we like being one generation ahead - and we have a few announcements up our sleeve, too.
I signed up for all the betas of django hosting places a while ago and dotcloud was the only one I heard from. I'm pretty sure they're YC too.
Cleaning up...
-----> Discovering process types
! Heroku push rejected due to an unrecognized error.
! We've been notified, see http://support.heroku.com if the problem persistsINSTALLED_APPS += (...)
No?
x += 2
Easier to read then: x = x + 2
For many reasons.. but mainly: 1) The first statement basically says: Add 2 to x, while the second says: Take x, add 2 and add that to x.. Which is one more step.
2) When a variable is repeated multiple time, I always read the line multiple time to make sure there is no error. For instance, in english "On the screen, there there is a xyz". I'll stop and read that sentence a couple of time to try to understand it.. and then realize it's an error. Likewise, when I see x = x + 2, I think "Is it a mistake?" I.e. did the author wanted to write: y = x + 2.. if not, why does he repeat himself?
However, I'm interested in knowing in what you find it more readable :) ?1) "Take x, add 2 and add that to x" the second add should be "set x to that". "Which is one more step." It is the same amount of steps, just a difference in how it is represented to the end user.
2) Hmm, never thought about that type of connection before. In my experience I had many years of "x = x + 1" in both Algebra class and when first exposed to Basic programing. I didn't encounter C (first exposure to extended operators) for at least another decade.
Whenever I see such an assignment statement I visualize this in my head...
x = x + 1
x = 5 + 1
x = --> 6 <-- (woosh)
x <---6 (woosh)
(6) (thud)No need to race to the bottom any faster guys.