Changes between Version 56 and Version 57 of NewformsAdminBranch


Ignore:
Timestamp:
Jul 8, 2008, 6:10:33 PM (16 years ago)
Author:
jashugan@…
Comment:

modified to deal with multiple import errors.

Legend:

Unmodified
Added
Removed
Modified
  • NewformsAdminBranch

    v56 v57  
    141141# a sample __init__.py file
    142142from django.contrib import admin
    143 from models import Author, Book
    144 from admins import BookAdmin
    145 
     143from project.app.models import Author, Book
     144from 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')
    146148admin.site.register(Author)
    147149admin.site.register(Book, BookAdmin)
Back to Top