网址导航工具, 基于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
- 创建超级用户:
python manage.py createsuperuser
- 镜像构建:
cd website
docker build -t website .
- 启动项目
docker run --rm --name website -p 80:80 -d website
- 请求http://127.0.0.1/admin 输入步骤3中的账号和密码添加网站信息
- 最后访问http://127.0.0.1 的效果图如下: