Django项目部署在阿里云Ubuntu服务器
Django的配置文件需要做一些修改。1. 修改ALLOWED_HOSTS为服务器的ipALLOWED_HOSTS = ["***.**.***.**"]2. 修改Debug = True为False, 配置文件里有醒目的警告:# SECURITY WARNING: don't run with debug turned on in production!DEBUG = Fal...