views:

18

answers:

1

In the Django admin i have a customized changelist with added search and filters. I have been looking alot but cannot seem to find a way to use the whole "changelist module" outside of admin. So i can embed it in one of my own pages.

I do not need any of the authentication or anything like that. I just want to show a table (for a content management backend) that has the nice search, sort and filter capabilities.

Is there perhaps any documentation about doing this?

A: 

Of course you can use the ChangeList class for your own projects. I cannot give you a full documentation on doing so here, but some points to start with.

  • Have a look here to see how the ChangeList has to be initialized in your view. (The ChangeList class lives at django.contrib.admin.views.main, so import it from there!)
  • Look at the admin templates to see how the corresponding template tags are used. (also this template)

Maybe you will also find the django.contrib.databrowse-application helpful!

lazerscience