Django管理サイトについて

Djangoについて - ping2shi2’s diaryで触れたAdminサイトについて。
概要/チュートリアルは、本家サイト(はじめての Django アプリ作成、その 1 | Django documentation | Django)を見ていただきたい。
ザックリ言うと以下の作業で管理サイトが出来ます。

  • 環境構築 (Python/Django/DBMS)
  • DBテーブル作成(Djangoのモデル作成でも良い)
  • DBとDjango を同期
  • 管理サイトを有効化

ER図さえ作れば(操作感や見た目にこだわらず)テーブルをCRUDするだけのWebアプリであれば、1日(もかからない)で出来てしまいます。マスタメンテとしては充分な機能です。
例えば、SI系の開発(ウォーターフォール)でも、要件定義や基本設計のできるだけ早いタイミング(作成請負部分の見積前)に管理サイトをユーザーに見てもらうことで、後工程の手戻りを減らせるような気がする。のは期待しすぎでしょうか?
(そもそもSI系の開発でPython/Djangoを採用するか?という話はありますが…)

上で「操作感や見た目にこだわらず」と書きましたが、ある程度カスタマイズできます。自分でカスタマイズすることもできますが出来るだけ手間をかけたくないのでライブラリ紹介サイトを見てみる。

Awesome Django

Djangoで使えるライブラリなどを紹介してます。その中のADMIN INTERFACE (http://awesome-django.com/#awesome-django-admin-interface)をザッと眺める。

1. djamin (https://github.com/hersonls/djamin/) - A new style for Django admin.
 → G Suite の管理Console風のデザインに。G Suite にDjangoアプリを追加する場合に良いかも。
2. django-admin-bootstrap (https://github.com/django-admin-bootstrap/django-admin-bootstrap) - Responsive Skin for Django Admin
 → bootstrapに。Django Ver.1.11
3. django-admin-bootstrapped (https://github.com/django-admin-bootstrapped/django-admin-bootstrapped/) - A Django admin theme using Twitter Bootstrap.
 → bootstrapに。Django Ver.1.8
4. django-admin-easy (https://github.com/ebertti/django-admin-easy)
 → カスタムフィールドを簡単に追加。Django Ver.1.11。どこまでできるか?
5. django-admin-interface (https://github.com/fabiocaccamo/django-admin-interface) - The ultimate admin interface, based on a modern flat theme, it lets you customize the admin title, logo and colors by the admin itself.
 → レスポンシブデザインに。Django Ver.2.0
6. django-admin-tools (https://github.com/django-admin-tools/django-admin-tools) - A collection of extensions/tools for the default django administration interface
 → ダッシュボードとナビゲーションメニューを追加してカッコ良く。
7. django-admin2 (https://github.com/jazzband/django-admin2/) - Extendable, adaptable rewrite of django.contrib.admin
 →拡張性と適応性に焦点を当て、今風のUIで管理画面を作り直してる(途中)。モデルのRESTful APIも自動で作れちゃうみたい。が、まだ実際に使える状態ではない。協力者絶賛募集中な感じです。
8. django-flat-responsive (https://github.com/elky/django-flat-responsive) - An extension for Django admin and django-flat-theme that makes interface mobile friendly.
 → モバイル対応。Djnago2.0にふくまれてる。Django2.0未満でモバイル対応する際は使えそう。
9. django-fluent-dashboard (https://github.com/django-fluent/django-fluent-dashboard) - An improved django-admin-tools dashboard for Django projects
 → ダッシュボードにアイコンを追加したり、カスタマイズできる。
10. django-grappelli (https://github.com/sehmaschine/django-grappelli/) - A jazzy skin for the Django Admin-Interface.
 → キレイなインターフェイスDjango Ver.1.11.
11. django-hijack (https://github.com/arteria/django-hijack/) - Allows superusers to hijack (=login as) and work on behalf of another user.
 → 管理者は他のユーザーに代わってログインして作業できる。
12. django-jet (https://github.com/geex-arts/django-jet) - Modern responsive template for the admin interface with improved functionality.
 → モバイル対応。かっこいいUI。
13. django-material (https://github.com/viewflow/django-material) Material design for Django Forms and Admin. Template driven.
 → マテリアルデザインでフォームを簡単に作れる&管理画面。フォームは便利そうだけど管理画面はオリジナルより制限があるみたい。
パッと見フォームは良さそうなので悩ましい。
14. django-object-actions (https://github.com/crccheck/django-object-actions) A Django app for adding object tools for models in the admin
 → 何ができるかイマイチわからない。使ってみるか?
15. django-suit (https://github.com/darklow/django-suit/) - Modern theme for Django admin interface.
 → 新しいデザイン。有料。
16. django-wpadmin (https://github.com/barszczmm/django-wpadmin/) - WordPress look and feel for Django administration panel.
 → WordPress風 ☆
17. django-xadmin (https://github.com/sshwsfc/xadmin/) - Drop-in replacement of Django admin comes with lots of goodies, fully extensible with plugin support, pretty UI based on Twitter Bootstrap
 → 良さげに思えたがデモサイトがエラーで見れない。使おうと思いにくい。
18. yawd-admin (https://github.com/yawd/yawd-admin/) - An administration website for Django
 → こちらもデモサイトがエラーで見れない。

Django Packages : Admin Interface

こちらもDjangoのライブラリ紹介サイト。比較表があるので選びやすい。Starsが多いものが表の左側がにあり、高評価→低評価になっている模様。主に左側と機能比較で✓が多いものを眺めてみる。
1. XADMIN
 → 上の16.と同じ。2013年から始まってるのにベータ版。判断が難しい。
2. DJANGO-GRAPPELLI
 → 上の10.と同じ。実績は一番ありそう。機能比較の✓が多い。レスポンシブ非対応で良ければこれで決まりか?
3. DJANGO-MATERIAL
 → 上の13.と同じ。最近のコミットが多い。商用版はRESTfulAPIもあり充実してる。
4. DJANGO JET
 → 上の12.と同じ。機能比較の✓は一番多い。オープンソース版でどこまでできるか知りたい。
5. DJANGO-ADMIN-TOOLS
 → 機能比較の✓が多い。2013年から始まってるのにベータ版。
6. DJANGO-ADMIN-INTERFACE
 → 機能比較の✓が多い。

試してみる

django-jet (https://github.com/geex-arts/django-jet)

人気もありそう&機能比較表で✓多いので。
django-jet を試してみる - Qiita

django-admin-interface(https://github.com/fabiocaccamo/django-admin-interface)

機能比較表で✓多いので。
django-admin-interface を試してみる - Qiita


引き続きもう少し試してみよう。