Creating an entire web application using django admin

前端 未结 5 610
陌清茗
陌清茗 2020-12-05 15:29

I was thinking that django admin is an utility to provide trusted administrators of the site, full access to the site\'s data model.

However, after going through dja

5条回答
  •  难免孤独
    2020-12-05 15:54

    I have done something like that before. It was a CMS for a university completely implemented by extending Django admin. It turned out it was a bad design descision. I had to jump through hoops to do some things.

    It really depends on what the requirements are for your application. If there needs to be lots of ajax or some specific workflow extending the admin will not be the right thing to do. But I think 60% of cases can be covered by extending the admin.

    It's also excellent for building prototypes.

    EDIT

    OK, that was in the 0.96 days.

    So far I've built 2 "big" sites that are in production completely on top of the new admin. These are mostly case management, data entry and reporting so they could be squeezed into the workflow of the admin. But, not without a big effort going into extending the base Site, ModelAdmin, InlineModelAdmin etc. The decision to go this way is we were pressed to do it quick. But in the first case it was a perfect fit for the requirements too. Both run on an intranet in the government sector. Both do their job fine. One with 200 tables handling tens of thousands of entries. The other one manages payments.

    So, yes it's true. The admin is not your app. However, it's extendable enough although much of it is not documented. And it fits in most basic enterpresey workflows. So it's worth considering in a limited number of scenarios.

提交回复
热议问题