服务器部署运行 nohup python manage.py runserver 0.0.0.0:8000 &
#语言
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
# 不适用世界时,改为False,数据库存储的时间和当地时间一致
USE_TZ = False
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
django setting基本配置
最新推荐文章于 2024-07-10 16:23:24 发布