Why and when I should override the default AdminSite

29 views
Skip to first unread message

Jérôme Le Carrou

unread,
Oct 9, 2019, 4:11:27 AM10/9/19
to Django users
I am newbie in DJango
I've started to read Django documentation and particularly the admin related documentation

I would like to understand when an why it should be pertinent to override the default AdminSite

regards

Mike Dewhirst

unread,
Oct 9, 2019, 8:44:04 AM10/9/19
to django...@googlegroups.com
That's easy. When the Admin site doesn't do exactly what you want. So press on and use it. You'll know precisely when you need to tweak something and that's when to dig out the docs again  :-)

Connected by Motorola
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ecd5e6a-c1b4-4642-8cda-f5746b4b9216%40googlegroups.com.

Jani Tiainen

unread,
Oct 9, 2019, 1:32:17 PM10/9/19
to django...@googlegroups.com
Hi.

I've been working with Django about 10 years and yet I haven't need for overriding admin.

Admin is great tool for CRUD while developing but I wouldn't push it too far. Specially trying to put any business logic in admin doesn't go well in the long run. 

And it's really easy to build proper management console with generic class based views which can cope with business requirements easily.

--

Derek

unread,
Oct 12, 2019, 3:43:22 AM10/12/19
to Django users
Hi

I have also been working with Django for many, many years.  All of our apps have been based around the many features/options already built-in to the admin and it works perfectly "as is".  There is really a lot you can do with it if your users are accustomed to working with more traditional grid-like database apps (and/or spreadsheets). For reporting you need to write your own code but its easy to add this in.  Adding "logic" to do data checks and make more complex changes is possible via actions.  The main advantage of the admin is that you're not writing a whole lot of code that you then have to support!

If your users want a more "modern" front-end e.g. a Single Page App, then yes, you will use Django simply for its ORM-modelling, add the Django Rest Framework on top, and then develop your front-end using whatever JS framework seems most popular these days.

My 2c
Derek


On Wednesday, 9 October 2019 19:32:17 UTC+2, Jani Tiainen wrote:
Hi.

I've been working with Django about 10 years and yet I haven't need for overriding admin.

Admin is great tool for CRUD while developing but I wouldn't push it too far. Specially trying to put any business logic in admin doesn't go well in the long run. 

And it's really easy to build proper management console with generic class based views which can cope with business requirements easily.

ke 9. lokak. 2019 klo 11.12 Jérôme Le Carrou <j.le...@gmail.com> kirjoitti:
I am newbie in DJango
I've started to read Django documentation and particularly the admin related documentation

I would like to understand when an why it should be pertinent to override the default AdminSite

regards

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

Derek

unread,
Oct 12, 2019, 3:45:56 AM10/12/19
to Django users
Not sure what you mean by "overwrite" - there are lots of ways to extend or customise Django admin, not the least of which is retheming it e.g.  Django Suite or Grappelli. 
Reply all
Reply to author
Forward
0 new messages