Debug support in the development server
The development server, which we have been using since Chapter 3, has several characteristics which aid in debugging. First, it provides a console that allows for easy reporting, during development, of what is going on in Django application code. The development server itself reports general information about its operation to the console. For example, typical output from the development server looks like this:
kmt@lbox:/dj_projects/marketr$ python manage.py runserver Validating models... 0 errors found Django version 1.1, using settings 'marketr.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. [25/Sep/2009 07:51:24] "GET / HTTP/1.1" 200 480 [25/Sep/2009 07:51:27] "GET /survey/1/ HTTP/1.1" 200 280 [25/Sep/2009 07:51:33] "GET /survey/888/ HTTP/1.1" 404 1704
As you can see, the development server starts out by explicitly validating models. If any errors are found they will be prominently reported...