Hi all,

I've started to play around with django just a few weeks ago. I'm a
newbie at python and, of course, django, but I have some experience
with database systems, especially RDBMSs. It seems to me that django
(together with python) represents the solution to what they tried to do
with the 4GL languages for database applications a while back (4D,
Ingres 4GL, that Oracle stuff on top of PL/SQL, etc.). The modelling
capabilities of django together with the automatic admin interface
definitely seems like a solid approach. Most of those types of database
applications that the 4GL languages were aimed at consists of fairly
simple view/interfaces (but a lot of them) and then a few more
complicated ones that cannot be automatically produced. In light of
this, I'm going to use the django admin interface for the simpler
objects, and only implement the user interface for some of the
complicated ones (I'm implementing a timesheet system).

However, when poking around in the documentation, source code, and news
groups, I cannot find a way to copy the admin template(s) for generic
views (which BTW is also a brilliant idea) except for the base.html and
the base_site.html as described in the documentation. It seems to me
that the templates are mostly produced on-the-fly, i.e. dynamically.
I've also found that the new branch 'new-admin' seems to extract these
dynamically produced templates into separate admin/templates (which
also seems like a very good idea).

Now, from my newbie point of view, getting into the model philosophy
and using the admin interface was pretty OK (= 'was done in a
reasonable amount of time') given the documentation at hand. I've even
mastered extending the auth_users by subclassing, works like a charm,
and implemented some ForeignKey(edit_inline) objects. However, the
templates are giving me a hard time now. It would be really neat to
have the admin templates as a starting point (learn-by-example kind of
thing).

Finally, the questions:

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)? 

Greatful for any insight...
/LarS

Reply via email to