我已经购买了一个域名,并将django应用程序部署到DigitalOcean,但是此错误不允许我使用该应用程序。如何忽略此错误?这是我的代码:
setting.py:
ALLOWED_HOSTS = ['blablabla.com','64.225.12.157']
nginx:
server {
listen 80;
server_name blablabla.com;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/sammy/myproject;
}
location / {
include proxy_params;
proxy_pass http://unix:/home/sammy/myproject/myproject.sock;
}
}
默认nginx:
root /var/www/blablabla.com;
index index.html index.htm index.nginx-debian.html;
server_name blablabla.com;
location / {
try_files $uri $uri/ =404;
}