网址导航工具, 基于html + django的后台可配置网址导航管理工具。
- clone 项目:
git clone https://github.com/yoyoidea/website.git
- 在setting中修改mysql配置:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'website',
'USER': 'root',
'PASSWORD': '123456',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}
- 执行数据表生成命令:
python manage.py makemigrations
python manage.py migrate
- 镜像构建:
cd website
docker build -t website .
- 启动项目
docker run -name website -p 8080:8080 -d website