mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
dev settings allow any host
This commit is contained in:
parent
753d1d67b3
commit
440d9c8430
@ -1,4 +1,4 @@
|
||||
FROM python:2.7
|
||||
FROM python:3.5
|
||||
ADD requirements.txt /tmp
|
||||
RUN pip install -r /tmp/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
WORKDIR /app
|
||||
|
@ -29,7 +29,7 @@ REDIS_QUEUE = {
|
||||
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
# 在 debug 关闭的情况下,静态文件不是有 django runserver 来处理的,应该由 nginx 返回
|
||||
# 在 debug 开启的情况下,django 会在下面两个文件夹中寻找对应的静态文件。
|
||||
|
Loading…
Reference in New Issue
Block a user