Skip to content
/ zblog Public

this is a blog written by django1.11 + bootstrap3.2.0 + dockercompose

License

Notifications You must be signed in to change notification settings

zhengze/zblog

Repository files navigation

ZBLOG

django编写的博客例子

1.工具和库说明

  • django1.11
  • boostrap3.2.0
  • jquery1.11
  • mysql5.7.17
  • docker1.13.1
  • docker-compose1.16.1

2.install docker and docker-compose

sudo apt-get install -y docker
sudo pip install docker-compose

3.docker build

sudo docker-compose build

4.start service

sudo docker-compose up -d

5.database migrate

sudo docker-compose run web python manage.py runserver makemigrations zblog
sudo docker-compose run web python manage.py runserver migrate

6.create superuser

sudo docker-compose run web python manage.py createsuperuser

7.collect static files

sudo docker-compose run web python manage.py collectstatic

8.add one article user admin

page admin, add Article