News for hackers. Stuff that matters.
Re:Django on Heroku running with Celery by scorpion032 on Thursday June 02, 2011 @04:53PM (#2613917)
Heroku, AppHosted, DotCloud, ep.io, Gondor.io, DjangoZoom, Google App Engine.

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?

Re:Django on Heroku running with Celery by mathrawka on Thursday June 02, 2011 @07:21PM (#2614449)
All the ones that support Django out of the box, are all in private beta I believe. So the market is starting to warm up to Django, but still not open for sale. Hopefully they all get through private beta and release, because competition is good for the market.
Re:Django on Heroku running with Celery by scorpion032 on Friday June 03, 2011 @03:27AM (#2615482)
Except one or two, all of them are available for general public.
Re:Django on Heroku running with Celery by rglover on Thursday June 02, 2011 @02:21PM (#2613229)
I feel like the title of this post would make someone over the age of fifty's head explode.
Re:Django on Heroku running with Celery by sixtofour on Thursday June 02, 2011 @08:20PM (#2614629)
Head check: intact.

Thanks for your concern. :)

Re:Django on Heroku running with Celery by awj on Friday June 03, 2011 @11:56AM (#2616830)
You may win the award for "best comment I've seen all day", and today has just started.
Re:Django on Heroku running with Celery by thinker on Thursday June 02, 2011 @02:56PM (#2613373)
Or it could be a long lost Beatles song
Re:Django on Heroku running with Celery by mixmastamyk on Thursday June 02, 2011 @03:19PM (#2613483)
Heroku in the Celreeee with Djangossss ...
Re:Django on Heroku running with Celery by chernevik on Thursday June 02, 2011 @09:35PM (#2614812)
I am the Python, goo goo g'joob
Re:Django on Heroku running with Celery by samyzee on Thursday June 02, 2011 @06:42PM (#2614316)
hahaha!!
Re:Django on Heroku running with Celery by mikek on Thursday June 02, 2011 @02:00PM (#2613112)
I thought Heroku only suppoted Ruby and node.js. Can someone explain what is going on here? Does it run arbitary executables, but it handles Ruby in some more powerful way?
Re:Django on Heroku running with Celery by stephth on Thursday June 02, 2011 @02:50PM (#2613342)
Re:Django on Heroku running with Celery by fictorial on Thursday June 02, 2011 @06:54PM (#2614359)
Only http traffic is routed to your web processes so a different protocol (I don't know, IRC) won't be routable to one of your deployed processes, correct?

Also, how much RAM can a process use? What happens if I run Redis and fill it up with "a lot" of data?

Re:Django on Heroku running with Celery by stephth on Thursday June 02, 2011 @08:13PM (#2614610)
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.

Re:Django on Heroku running with Celery by whackedspinach on Thursday June 02, 2011 @04:26PM (#2613796)
Are there any drawbacks to this? I've been looking for a "Heroku for Django" for a few months and I just started using Google App Engine to get some of what I want. I'll go ahead and try this if it works well.
Re:Django on Heroku running with Celery by stephth on Thursday June 02, 2011 @04:34PM (#2613838)
The [good / bad] news for you is: you [won't have to / can't] use the AppEngine High Replication Datastore.

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.

Re:Django on Heroku running with Celery by whackedspinach on Thursday June 02, 2011 @07:09PM (#2614397)
That is pretty exciting. I moved to App Engine from EC2 because I didn't want to spend that much time managing the stack. I'm going to go try Heroku now.
Re:Django on Heroku running with Celery by shykes on Thursday June 02, 2011 @11:28PM (#2615051)
If you like the idea of "Heroku for anything", I encourage you to try the original: dotCloud has been running a similar platform for almost a year now.

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.

Re:Django on Heroku running with Celery by stephth on Friday June 03, 2011 @03:19AM (#2615470)
Dotcloud looks very interesting, but to me it's hard to consider next to strong competitors that have established their pricing... That said I'm very looking forward to see the dotcloud pricing announced.
Re:Django on Heroku running with Celery by shykes on Friday June 03, 2011 @04:52AM (#2615616)
Hi Steph, I just dropped you an email with good news :)
Re:Django on Heroku running with Celery by makeramen on Friday June 03, 2011 @12:21AM (#2615139)
dotcloud (http://www.dotcloud.com/) has been my go-to django (and everything) hosting. They seem to hand out invites pretty quickly, esp if you tweet them (http://docs.dotcloud.com/faq/#i-need-a-beta-invite-right-now).

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.

Re:Django on Heroku running with Celery by intranation on Thursday June 02, 2011 @05:43PM (#2614129)
If you want a dedicated cloud hosting platform that works really well with Django you could do worse than try http://www.ep.io/ (currently invite only, but really good service).
Re:Django on Heroku running with Celery by whackedspinach on Thursday June 02, 2011 @07:07PM (#2614391)
Yes, I saw that a week ago and signed up for an invite. People seem to be happy with it from what I've seen on StackOverflow and other sites.
Re:Django on Heroku running with Celery by dagw on Thursday June 02, 2011 @03:24PM (#2613513)
Has anybody tried running numpy? If it's got numpy then I think I have found my new hosting solution for my upcoming project at work.
Re:Django on Heroku running with Celery by sirn on Thursday June 02, 2011 @01:58PM (#2613099)
Slight OT: Is it just me or non-Ruby/NodeJS no longer works on Cedar stack?

           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 persists
Re:Django on Heroku running with Celery by sirn on Friday June 03, 2011 @08:19AM (#2616031)
More info: I'm running exactly what's on this Gist.
Re:Django on Heroku running with Celery by d0m on Thursday June 02, 2011 @01:48PM (#2613051)
INSTALLED_APPS = INSTALLED_APPS + (...) can be rewritten as:

INSTALLED_APPS += (...)

No?

Re:Django on Heroku running with Celery by mixmastamyk on Thursday June 02, 2011 @01:59PM (#2613108)
Yep. It could be argued that the first is more readable though.
Re:Django on Heroku running with Celery by d0m on Thursday June 02, 2011 @02:58PM (#2613383)
Personally, I find:

  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 :) ?
Re:Django on Heroku running with Celery by mixmastamyk on Friday June 03, 2011 @03:21AM (#2615472)
Looking a bit closer:

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)
Re:Django on Heroku running with Celery by mixmastamyk on Thursday June 02, 2011 @03:18PM (#2613477)
It's merely more familiar to the average person. I'm not against the first form and use it a lot. See my comment to llamda below for more details.
Re:Django on Heroku running with Celery by alnayyir on Thursday June 02, 2011 @02:08PM (#2613166)
For who? I don't think anybody who actually writes code is going to be confused by +=

No need to race to the bottom any faster guys.

[dead]
Re:Django on Heroku running with Celery by llambda on Thursday June 02, 2011 @02:53PM (#2613358)
I disagree: your statement does not in fact reflect conventions on common readability. If anything, a programmer should be able to read s = s + (...) just as well as s += (...). They both seem obvious to me but as a Python programmer, I prefer the latter.
Re:Django on Heroku running with Celery by mixmastamyk on Thursday June 02, 2011 @03:16PM (#2613464)
Read it again, says "could be argued," not that I am in unrelenting agreement with it. I find both obvious as well.

However, one of python's main design goals is readability. That's why it does not have the i++ operator in preference to i = i + 1, for example. No switch keyword either. +=, etc managed to squeeze in though.

More specifically, one of the forms has a thousand years+ of algebra notation behind it, the other does not. I made no statement over whether pro programmers would find it confusing, but on the readability count, analogues to mathematics win.

Re:Django on Heroku running with Celery by alnayyir on Thursday June 02, 2011 @05:03PM (#2613959)
Just make your point and stand by it, don't say it unless you mean it.
Re:Django on Heroku running with Celery by mixmastamyk on Thursday June 02, 2011 @07:33PM (#2614498)
To be clear, it was a intended helpful comment with the point that the argument /exists/, an attempt to explain why one would do such a thing. Whether you or I support it or not is irrelevant.

Unless you are arguing that the idea should not even be discussed, downvotes are malicious. The mere mention of an idea should not be attacked.

Re:Django on Heroku running with Celery by d0m on Thursday June 02, 2011 @08:11PM (#2614602)
"Yep. It could be argued that the first is more readable though" -> I agree with you that this vote should not have been down-voted. I feel like the down-vote was more of a "I think what you said is wrong" rather then a "this comment was useless or misplaced".

However, I feel like the following replies coming from you were unnecessary aggressive.

In your first comment, after you saw that people didn't understand the meaning, I think it would have been better to edit it and explain - without being aggressive - what you intended by "more readable".

Re:Django on Heroku running with Celery by mixmastamyk on Friday June 03, 2011 @02:07AM (#2615347)
Logically, yes. However I found multiple quick downvotes over a very benign statement rude and reacted in kind.

People would like to think they don't matter, but it is the same as walking into a room and punching someone in the arm. If I had made some horrible statement it might make sense.

Re:Django on Heroku running with Celery by alnayyir on Thursday June 02, 2011 @08:25PM (#2614646)
Communicate in way that will convey the meaning you desire to others. Everything else is self-indulgence and solipsism.

It's your responsibility to make yourself understood, not ours.

Re:Django on Heroku running with Celery by mixmastamyk on Friday June 03, 2011 @02:36AM (#2615392)
It was a simple sentence. While I'd like for people to understand as well as possible, I'm not going to write defensive paragraphs every comment to prevent others from projecting their bias(es) onto my words and/or jumping first to negative conclusions.

It's no way to live and would be impossible anyway, how to know in which direction todays random replier will hijack my comment?