▼ 以下の環境下で動作確認しているが、Djangoがインストール済でサーバーとして動作する環境であれば問題ない。
・OS:CentOS7.4
・Webサーバー:Apache2.4.6 + mod_wsgi
・開発言語:Python3.6(venv)、Python2.7(標準搭載)
・FW:Django2.0
・DB:PostgreSQL9.2
・仮想環境フォルダ:/var/www/vops
・プロジェクトフォルダ:/var/www/vops/ops
▼ ※上記の環境構築周りは、下記を参考
[1] VPS契約とCentOSインストール + 初期設定
[2] CentOS7にApacheインストール + アクセス周りの設定
[3] Let's EncryptのSSL/TLS導入と定期更新
[4] Python、Djangoインストール + Django起動確認
[5] Apache + Django + PostgreSQLで本番環境を構築 (インストール編)
[6] Apache + Django + PostgreSQLで本番環境を構築 (設定編)
[1] Django Debug Toolbar の導入
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel'
]
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.profiling.ProfilingPanel' # 追記
]