dev settings allow any host

This commit is contained in:
virusdefender 2017-01-24 16:11:46 +08:00
parent 753d1d67b3
commit 440d9c8430
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
FROM python:2.7 FROM python:3.5
ADD requirements.txt /tmp ADD requirements.txt /tmp
RUN pip install -r /tmp/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple RUN pip install -r /tmp/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
WORKDIR /app WORKDIR /app
CMD python manage.py runserver 0.0.0.0:8085 CMD python manage.py runserver 0.0.0.0:8085

View File

@ -29,7 +29,7 @@ REDIS_QUEUE = {
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ["*"]
# 在 debug 关闭的情况下,静态文件不是有 django runserver 来处理的,应该由 nginx 返回 # 在 debug 关闭的情况下,静态文件不是有 django runserver 来处理的,应该由 nginx 返回
# 在 debug 开启的情况下django 会在下面两个文件夹中寻找对应的静态文件。 # 在 debug 开启的情况下django 会在下面两个文件夹中寻找对应的静态文件。