November 2015
Beginner to intermediate
840 pages
26h 30m
English
Nothing clarifies programming quite like walking through each step the code takes. Let’s find out what happens when we run our web server and navigate to http://127.0.0.1:8000/.
Before we can go to the webpage, we have to start Django. We do so with Example 5.3.
Example 5.3: Shell Code
$ ./manage.py runserver
Django loads the settings in suorganizer/settings.py, configuring itself. It then loads all of the URL patterns in the URL configuration into memory, which allows Django to match URLs quickly. Once set up, we can type http://127.0.0.1:8000/ into our browser.
Our browser begins by finding the server with the network location 127.0.0.1. That’s easy: that IP address ...
Read now
Unlock full access