Changes between Version 56 and Version 57 of NewformsAdminBranch
- Timestamp:
- Jul 8, 2008, 6:10:33 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewformsAdminBranch
v56 v57 141 141 # a sample __init__.py file 142 142 from django.contrib import admin 143 from models import Author, Book 144 from admins import BookAdmin 145 143 from project.app.models import Author, Book 144 from project.app.admins import BookAdmin 145 146 # Make sure the following are executed exactly once (i.e., watch your imports), or you'll see AlreadyRegistered exceptions. 147 # Meaning if you use project.app, then use project.app everywhere, including in url configuration (i.e. use 'project.app.views') 146 148 admin.site.register(Author) 147 149 admin.site.register(Book, BookAdmin)