| | 4 | |
| | 5 | As a concrete example: |
| | 6 | |
| | 7 | |
| | 8 | {{{ |
| | 9 | print(html) |
| | 10 | .... lots of text |
| | 11 | |
| | 12 | </div> |
| | 13 | <div id="explanation"> |
| | 14 | <p> |
| | 15 | You’re seeing this error because you have <code>DEBUG = True</code> in your |
| | 16 | Django settings file. Change that to <code>False</code>, and Django will |
| | 17 | display a standard page generated by the handler for this status code. |
| | 18 | </p> |
| | 19 | </div> |
| | 20 | <!-- |
| | 21 | Traceback (most recent call last): |
| | 22 | File "/path/to/example.py", line 4, in <module> |
| | 23 | greet('Chad') |
| | 24 | File "/path/to/example.py", line 2, in greet |
| | 25 | print('Hello, ' + someon) |
| | 26 | NameError: name 'someon' is not defined |
| | 27 | --> |
| | 28 | </body> |
| | 29 | </html> |
| | 30 | }}} |