# django-starter **Repository Path**: yazutang/django-starter ## Basic Information - **Project Name**: django-starter - **Description**: django起始项目基本配置 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-20 - **Last Updated**: 2021-10-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # django-starter #### 介绍 django 起始项目基本配置 #### 安装第三方库 `pipenv install mysqlclient django-redis` #### 本地启动 mysql 和 redis 服务器(manjaro linux) ```bash sudo systemctl start mysqld sudo systemctl start redis ``` #### 检验相关配置是否生效,访问相应 URLs 静态文件配置 statictest/ 媒体文件配置 mediatest/ 日志配置 loggingtest/ 检验 redis 会话和缓存是否生效参考: [django-redis](https://django-redis-chs.readthedocs.io/zh_CN/latest/) #### docker 相关命令 ```bassh $ sudo docker-compose up --build # 创建镜像并启动 $ sudo docker-compose exec web python manage.py collectstatic --noinput # 收集静态文件 $ sudo docker-compose up -d # 守护进程模式启动容器 ```