Skip to content

yoyoidea/website

Repository files navigation

Website

网址导航工具, 基于html + django的后台可配置网址导航管理工具。

使用方法

  1. clone 项目:
git clone https://github.com/yoyoidea/website.git
  1. 在setting中修改mysql配置:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'website',
        'USER': 'root',
        'PASSWORD': '123456',
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
}
  1. 执行数据表生成命令:
python manage.py makemigrations
python manage.py migrate
  1. 创建超级用户:
python manage.py createsuperuser
  1. 镜像构建:
cd website
docker build -t website .
  1. 启动项目
docker run --rm --name website -p 80:80 -d website
  1. 请求http://127.0.0.1/admin 输入步骤3中的账号和密码添加网站信息

image

  1. 最后访问http://127.0.0.1 的效果图如下:

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published