Live data from Hacker News

Deploying Django on Heroku

blog.abhiomkar.in

1–10 of 21 posts

Re: Deploying Django on Heroku

#2
That's really cool, thanks for posting. What's it using to serve the pages though, it looks like the django test server? Btw, not a ror dev (at all) but what does that typically use as a web server and how is heroku doing it? (not apache?)

Re: Deploying Django on Heroku

#4
This is running via runserver, right? Don't use this for production.

There are some nice pure-Python web servers though. To someone who knows more about Heroku's stack, if I replace “manage.py runserver” with, say, CherryPy, would there be any Heroku-specific performance issues to consider?

Re: Deploying Django on Heroku

#5
post #4

This is running via runserver, right? Don't use this for production. There are some nice pure-Python web servers though. To someone who knows more about Heroku's stack, if I replace “manage.py runserver” with, say, CherryPy, would there be any Heroku-specific performance issues to consider?

(I would use gunicorn)

Re: Deploying Django on Heroku

#7
post #5
post #4

This is running via runserver, right? Don't use this for production. There are some nice pure-Python web servers though. To someone who knows more about Heroku's stack, if I replace “manage.py runserver” with, say, CherryPy, would there be any Heroku-specific performance issues to consider?

(I would use gunicorn)

Good plan. From the Django documentation:

"DO NOT USE THIS SERVER IN A PRODUCTION SETTING."

(https://docs.djangoproject.com/en/1.3/ref/django-admin/#runs... )

Re: Deploying Django on Heroku

#8
post #5
post #4

This is running via runserver, right? Don't use this for production. There are some nice pure-Python web servers though. To someone who knows more about Heroku's stack, if I replace “manage.py runserver” with, say, CherryPy, would there be any Heroku-specific performance issues to consider?

(I would use gunicorn)

We made a nice recipe for production-ready Djanogo setup on Heroku http://www.askthepony.com/blog/2011/07/getting-django-on-her...

Re: Deploying Django on Heroku

#9
post #4

This is running via runserver, right? Don't use this for production. There are some nice pure-Python web servers though. To someone who knows more about Heroku's stack, if I replace “manage.py runserver” with, say, CherryPy, would there be any Heroku-specific performance issues to consider?

I have done this with Twisted and have yet to see any problems.

In your requirements.txt, add "Twisted". In your procfile, try something like:

    web: bin/python ./twistd -n web --port=$PORT --wsgi fully.qualified.app.name
Post reply on HN