[Solved]-Django: The best practice to implement CRUD outside the contrib.admin

9👍

This is quite easy to do by tweaking the Django admin. If this is the only reason for abandoning contrib.admin then you might want to google for some recent articles on customizing the admin before you go ahead and throw the baby out with the bathwater.

I found a few likely candidates:

and in general: http://www.ibm.com/developerworks/opensource/library/os-django-admin/index.html

(note that there was an old technique that used a threads local hack. This isn’t necessary anymore as there are better ways to do this. A mention of this is a sure sign the article is out of date.)

10👍

You’ll want to look at the Django generic create/update forms. It’s not the admin, but it’s fairly easy to implement.

4👍

Check this application: https://github.com/05bit/django-smarter.

It’s not well documented yet, but I’ve already used it in a couple of projects.

0👍

In Django 1.3, the “generic views” (CRUD forms) have changed to be class-based. See here.

Leave a comment