mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Update Tutorial - quickstart (#7943)
* Tutorial - Adjust quickstart Add asgi.py file Also add paragraph for the second user, which is later displayed * Tutorial - Adjust quickstart It seems that there is no CLI command to easily create a user Remove the second user from the Markdown Image next * Tutorial - quickstart - Update browsable API image Only show the admin user New Image has similar width and is compressed
This commit is contained in:
		
							parent
							
								
									f3bb5b9cdc
								
							
						
					
					
						commit
						2d52c9e8bc
					
				
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 27 KiB  | 
| 
						 | 
					@ -42,6 +42,7 @@ The project layout should look like:
 | 
				
			||||||
    ./tutorial/quickstart/models.py
 | 
					    ./tutorial/quickstart/models.py
 | 
				
			||||||
    ./tutorial/quickstart/tests.py
 | 
					    ./tutorial/quickstart/tests.py
 | 
				
			||||||
    ./tutorial/quickstart/views.py
 | 
					    ./tutorial/quickstart/views.py
 | 
				
			||||||
 | 
					    ./tutorial/asgi.py
 | 
				
			||||||
    ./tutorial/settings.py
 | 
					    ./tutorial/settings.py
 | 
				
			||||||
    ./tutorial/urls.py
 | 
					    ./tutorial/urls.py
 | 
				
			||||||
    ./tutorial/wsgi.py
 | 
					    ./tutorial/wsgi.py
 | 
				
			||||||
| 
						 | 
					@ -176,12 +177,6 @@ We can now access our API, both from the command-line, using tools like `curl`..
 | 
				
			||||||
                "url": "http://127.0.0.1:8000/users/1/",
 | 
					                "url": "http://127.0.0.1:8000/users/1/",
 | 
				
			||||||
                "username": "admin"
 | 
					                "username": "admin"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "email": "tom@example.com",
 | 
					 | 
				
			||||||
                "groups": [],
 | 
					 | 
				
			||||||
                "url": "http://127.0.0.1:8000/users/2/",
 | 
					 | 
				
			||||||
                "username": "tom"
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -202,12 +197,6 @@ Or using the [httpie][httpie], command line tool...
 | 
				
			||||||
                "url": "http://localhost:8000/users/1/",
 | 
					                "url": "http://localhost:8000/users/1/",
 | 
				
			||||||
                "username": "paul"
 | 
					                "username": "paul"
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                "email": "tom@example.com",
 | 
					 | 
				
			||||||
                "groups": [],
 | 
					 | 
				
			||||||
                "url": "http://127.0.0.1:8000/users/2/",
 | 
					 | 
				
			||||||
                "username": "tom"
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user