mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.11.x] Added some shell output in tutorial 2.
Backport of 1b5b3710f1 from master
			
			
This commit is contained in:
		| @@ -361,6 +361,7 @@ With that ready, we can ask the client to do some work for us:: | ||||
|  | ||||
|     >>> # get a response from '/' | ||||
|     >>> response = client.get('/') | ||||
|     Not Found: / | ||||
|     >>> # we should expect a 404 from that address; if you instead see an | ||||
|     >>> # "Invalid HTTP_HOST header" error and a 400 response, you probably | ||||
|     >>> # omitted the setup_test_environment() call described earlier. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user