This chapter covers the last essential step of building a Django application: deploying it to a production server.
If you've been following along with our ongoing examples, you've likely been using the runserver
, which makes things very easy-with runserver
, you don't have to worry about web server setup. But runserver
is intended only for development on your local machine, not for exposure on the public web.
To deploy your Django application, you'll need to hook it into an industrial-strength web server such as Apache. In this chapter, we'll show you how to do that-but, first, we'll give you a checklist of things to do in your codebase before you go live.