> Is there an API for using the admin-code, or is is just "rip out what you 
> need"?

It is still an "all or nothing" application (i.e. no API). If you use
admin, it will be applied to whatever you want to have visible from the
urls.py file, so this does give you a lot of flexbility.

e.g. if you want to only allow the admin list view for MyObject but
nothing else in your app, follow the directions for adding admin
functionality, but in your urls.py file, instead of:
(r'^/{0,1}', include('django.contrib.admin.urls.admin'))

add:
(r'^objectlist/$', 'django.contrib.admin.views.main.change_list',
{'app_label':'myapp','module_name':'myobject'})
or:
(r'^app_label/myobject/$',
'django.contrib.admin.views.main.change_list')

and whatever else you want from django/contrib/admin/urls.py
You will have to work around the expected relative urls from the admin
pages a little.

 -rob


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to