Hacker News new | ask | show | jobs
by masklinn 5447 days ago
> Compare that to setting up e.g. Django or Rails.

Can't speak for rails, but for Django we're talking 15 lines and a pair of commands for a clean setup:

* Create a virtualenv with all your dependencies and your django application checked out (0 lines)

* Extract static files to whatever directory you're serving static files from (1 command in 1.3)

* Create your wsgi handler script (4 lines, because you have to setup the DJANGO_SETTINGS_MODULE env)

* WSGIScriptAlias and the relevant directory allow (5 lines)

* WSGIDaemonProcess and WSGIProcessGroup configuration directives (2 lines)

done.

1 comments

For PHP, it's 0 lines. Works right out of the box.
Nope. You have to set up a webserver (Apache or whatever) and PHP. Then (to get on par with Django+virtualenv practices level) get some PHP framework of choice...

Sure, PHP comes pre-configured out of the box. But there are no real differences between `apt-get install python-django` (comes with a development web-server, runnable as ./manage.py runserver) and `apt-get install apache2 libapache2-php`.