# Mxonline3-new **Repository Path**: rillhu/Mxonline3-new ## Basic Information - **Project Name**: Mxonline3-new - **Description**: latest mxonline python3.7 + Django3.0 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-03-29 - **Last Updated**: 2022-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Update - [x] Add Dockerfile for Mxonline3 to build the image ```dockerfile FROM python:3.7 WORKDIR /app COPY requirements.txt . RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt ADD . /app EXPOSE 8000 CMD [ "bin/bash" ] ``` Then you can use the build command to generate mxonline container. ```dockerfile docker build -t artmisdockerimg . ``` - [x] Add Docker for MySQL(directly run a container) ```dockerfile docker run --name=mysql-mxonline -it -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mypwd -d mysql:5.7 ``` Note: - Using the `Mxonline3 ` image to run container, you need to use some method to let the container can access the mysql container. such as: ```dockerfile docker run -it --name artemis -p 8000:8000 --link mysql-mxonline artmisdockerimg:latest /bin/bash ``` - You need also change settings.py's Django-Mysql configurations to access mysql. # Mxonline3 在线教育(Django3.0 + Xadmin 后台管理+ Ueditor 富文本编辑器) Python3.7与Django3.0开发的在线教育平台网站: http://mxonline.mtianyan.cn > 已测试xadmin, DjangoUeditor Django3.0下功能可用。 如有3.0使用时触发Bug,可请进群联系。欢迎加入 funpython.cn QQ群:211599322 ## 如何开始使用? ``` git clone https://github.com/mtianyan/Mxonline3.git cd Mxonline3 pip install -r requirements.txt python manage.py makemigrations python manage.py migrate python manage.py createsuperuser python manage.py runserver ``` use the address: http://127.0.0.1:8000/