django三

不同环境配置

https://blog.csdn.net/happylee524/article/details/104067973

python your_project/manage.py runserver 0.0.0.0:8000 --settings=your_project.settings.set_dev

低版本MySQL

启动必须注释源码(django高版本不支持Mysql低版本)

django\db\backends\base\base.py 
# self.check_database_version_supported()

django+dockerfile

FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
 
posted @ 2024-08-20 20:04  hjy1995  阅读(5)  评论(0编辑  收藏  举报