我需要拆分Django的开发和生产设置。我决定如果设置了USKOVTASK_PROD变量,那么应用程序应该使用生产设置。我读了this文章并尝试这样做。我的片段:/etc/apache2/sites-enabled/uskovtask.conf:ServerNameuskovtask.*.comServerAliasuskovtask.*.comDocumentRoot/mnt/ebs/uskovtaskAlias/static/mnt/ebs/uskovtask/static/Requireallgranted#WSGIPythonPath/mnt/ebs/uskovtaskWSGI