mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[1.5.x] Fixed #20309 -- admin.py is not automatically created in Django 1.5
This commit is contained in:
		| @@ -110,8 +110,8 @@ Make the poll app modifiable in the admin | |||||||
| But where's our poll app? It's not displayed on the admin index page. | But where's our poll app? It's not displayed on the admin index page. | ||||||
|  |  | ||||||
| Just one thing to do: we need to tell the admin that ``Poll`` | Just one thing to do: we need to tell the admin that ``Poll`` | ||||||
| objects have an admin interface. To do this, open the :file:`polls/admin.py` | objects have an admin interface. To do this, create a file called | ||||||
| file, and edit it to look like this:: | :file:`admin.py` in your ``polls`` directory, and edit it to look like this:: | ||||||
|  |  | ||||||
|     from django.contrib import admin |     from django.contrib import admin | ||||||
|     from polls.models import Poll |     from polls.models import Poll | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user