Skip to content
CASH - Django+DRF开发的轻量小博客
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cash
cash_article
cash_extra fix May 7, 2019
cash_link
cash_tag
config
fixtures 添加Google统计 Apr 21, 2019
media
templates
utils
.gitignore
LICENSE Init Nov 29, 2018
Makefile
README.md
docker-compose.yml
manage.py
requirements.txt 添加psycopg2依赖包 Apr 21, 2019

README.md

CASH

Demo环境快速启动阅览

请确保你已经安装好了docker与docker-compose

  • clone项目
$ git clone https://github.com/anshengme/cash.git
  • 进入项目目录
$ cd cash
  • 启动服务
$ make up
  • 查看日志已确保Django启动
$ make logs  # 类似出现api_1_CONTAINER_ID | python3 manage.py runserver 0:9006
  • 导入默认数据
$ docker-compose exec cash sh -c "cd /src && make load"
  • 创建管理用户
$ docker-compose exec cash sh -c "cd /src && python manage.py createsuperuser"
  • 生成静态文件
$ docker-compose exec cash sh -c "cd /src && python manage.py collectstatic --noinput"
  • 访问

首页:http://localhost:9080/ / 管理后台:http://localhost:9080/

You can’t perform that action at this time.