On Sun, Sep 28, 2008 at 4:39 PM, Gerard Petersen <[EMAIL PROTECTED]> wrote:
>
> Russell,
>
> Is it correct to say that the admin.autodiscover statement should register 
> the models in 'myapp', and therefore I don't need the individual 
> admin.site.register statement for each model?

No - that isn't correct.

The purpose of admin.autodiscover is to discover all the admin.py
files in your project. Each admin.py file will then need to contain
the ModelAdmin definitions and site.register() calls required.

> I have a admin dir. in the templates dir. that contain almost unmodified 
> copies of admin's index.html and base_site.html.

This possibly points at a source of confusion - when I say admin.py, I
don't mean templates - I mean a python file called admin.py. It sits
next to models.py in your application directory, and contains the
admin registrations for the models in the application.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to