On 10/22/05, stava <[EMAIL PROTECTED]> wrote: > 1) is there any way that the admin templates could be > extracted/visualized somehow from the admin interface, like "import > django...; for t in templates: print template" or something to that > effect? > > 2) Or, are the new-admin templates ready to rock-and-roll, and how do I > accomplish that then (unfortenatly I'm new to subversion as well, used > CVS for ages)?
Hey LarS, Welcome to the Django community. :) You're correct -- the admin templates for add forms, change forms and the change list pages are all generated automatically, so it's not possible to view the raw template code "out of the box." If you're really interested, you can uncomment lines 856 and 982 of django/contrib/admin/views/main.py . (Those line numbers should be correct if you're running a version of Django higher than 947.) Uncommenting those lines will result in the admin displaying the raw template code instead of the HTML. You're also correct that the new-admin branch aims to make the admin templates less hard-coded and the admin functionality more reusable. We're all excited about that. :) Finally, if you just want to "redesign" the admin, feel free to create your own admin/base.html and admin/base_site.html templates. Those provide the look and feel, and CSS, for the entire admin site; i.e., that's not hard-coded. Hope this answers your questions, Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

