Monday, October 29, 2012

Custom Admin Panel

Hi,

I'm in the process of writing a Django site and one of the requirements
is that it have a custom admin panel and a custom control panel but I am
having some problems coming up with the best way to organise my application.

My initial idea was to have the admin (and control) panels as separate
applications with all the models that they require in specific apps. So
for instance if I have a news app then the admin panel simply loads the
models from the news app and displays them in the way that I want. This
works fine but it relies on a hard link between the admin panel and the
news app. When using the admin panel built into Django there is no hard
link between apps, you simply add an admin.py file to your application
and the admin panel takes care of the rest.

Is there some way to do this with a custom admin panel whilst still
retaining the flexibility of displaying the data associated with an app
in a much more complex manner than the built in admin panel allows?

I'm basically trying to decouple the two apps so that changes in one do
not have an adverse effect on the other one. Also it would be nice to
use the admin panel app in other projects that also require the
flexibility of having a custom admin panel.

Thanks for any help.

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

No comments:

Post a Comment