mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
1. 重新初始化
2. 调整为手动更新 3. 添加指定服务端口的环境变量
This commit is contained in:
@@ -11,6 +11,8 @@ ENV PYTHONUNBUFFERED 1
|
||||
ENV DJANGO_SUPERUSER_USERNAME=admin
|
||||
ENV DJANGO_SUPERUSER_EMAIL=admin@eamil.com
|
||||
ENV DJANGO_SUPERUSER_PASSWORD=adminadmin
|
||||
ENV DJANGO_WEB_PORT=8000
|
||||
ENV DJANGO_DEBUG=True
|
||||
|
||||
COPY pip.conf /root/.pip/pip.conf
|
||||
|
||||
|
||||
@@ -23,6 +23,13 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
SECRET_KEY = 'django-insecure-6wrh^t$@gbb^s^=79@%cv=%yhq6gl^kane#g@-n-*n6+s1lo2f'
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
# if os.environ.get('DJANGO_DEBUG'):
|
||||
# print("Debug is enabled.")
|
||||
# DEBUG = True
|
||||
# # When not specified, ALLOW_HOSTS defaults to:
|
||||
# # ALLOWED_HOSTS = ['localhost', '127.0.0.1', '[::1]']
|
||||
# else:
|
||||
# DEBUG = False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
Reference in New Issue
Block a user