Deploying Django to a production server

Note

Headache free deployment

If you are serious about deploying a live website, there is really only one sensible option-find a host that explicitly supports Django.

Not only will you get a separate media server out of the box (usually Nginx), but they will also take care of the little things like setting up Apache correctly and setting a cron job that restarts the Python process periodically (to prevent your site hanging up). With the better hosts, you are also likely to get some form of one-click deployment.

Save yourself the headache and pay the few bucks a month for a host who knows Django.

Get Mastering Django: Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.