mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 00:13:18 +00:00
dev settings allow any host
This commit is contained in:
parent
753d1d67b3
commit
440d9c8430
@ -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
|
||||||
|
@ -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 会在下面两个文件夹中寻找对应的静态文件。
|
||||||
|
Loading…
Reference in New Issue
Block a user