目录
目录README.md
logo

Campus Canteen Ordering System

HITSZ 2021 年秋季学期「数据库设计」课程实验项目,基于 MySQL+Django 实现校园食堂点餐系统

访问我的博客查看完整开发文档 🚀 :https://hwcoder.top/DB-Project

主要环境:

  • PowerDesigner
  • MySQL Workbench 8.0 CE
  • Python 3.8
  • Django 3.2.8
  • BootStrap 3.3.7
  • Django-simpleui

系统功能

管理员模块 用户模块

项目结构 📝

django_CCOS
 ├── canteen                //app1
 ├── customer                //app2
 ├── dish                //app3
 │   ├── admin.py
 │   ├── apps.py
 │   ├── migrations
 │   ├── models.py            //数据库模型
 │   ├── tests.py
 │   ├── urls.py
 │   ├── views.py            //实现的视图
 │   └── __init__.py
 ├── django_CCOS
 │   ├── asgi.py
 │   ├── settings.py            //配置文件
 │   ├── urls.py
 │   ├── wsgi.py
 │   └── __init__.py
 ├── manage.py
 ├── media                //图片文件
 │   └── images
 ├── static                //样式文件
 │   ├── bootstrap-3.3.7-dist
 │   ├── css
 │   └── js
 └── templates                //页面模板 
     ├── base.html
     ├── canteen
     │   ├── canteen_base.html
     │   ├── canteen_list.html        //食堂展示
     │   └── shop_list.html        //窗口展示
     ├── customer
     │   ├── index.html
     │   ├── information.html        //完善用户信息
     │   ├── login.html            //登录界面
     │   ├── logout.html        //登出界面
     │   ├── register.html        //注册界面
     │   └── show_info.html        //个人
     └── dish
         ├── dish_base.html
         ├── dish_list.html        //菜品展示
         └── my_order.html        //我的订单

快速开始 🚀

  1. 初始化:

    • 克隆本项目 git clone https://github.com/hewei2001/campus-canteen-ordering.git

    • 卸载原依赖 pip uninstall -y -r requirement.txt

    • 配置新依赖 pip install -r requirements.txt

  2. 数据库准备:

    • 打开 MySQL Workbench 服务器,创建本地数据库 create database django_CCOS

    • 项目参数修改:打开 settings.py 配置文件,找到 MySQL 自定义参数,修改为你自己的配置

  3. 项目启动,进入项目 django_CCOS 目录,执行:

    • python manage.py makemigrations
    • python manage.py migrate
    • python manage.py runserver
  4. 前端访问:http://127.0.0.1:8000

  5. 后台访问:http://127.0.0.1:8000/admin

    • 创建管理员:python manage.py createsuperuser
    • 自行添加食堂、窗口、菜品,否则初始不显示

效果图

image-20211107210032459

image-20211107210104324

image-20211107210220338

image-20211107210124156

image-20211107210146836

鸣谢

感谢 Yiwen-Ding 小朋友!

BTW,如果这个项目帮到了你,就点个 吧 ~

关于

基于 MySQL+Django 实现校园食堂点餐系统。

7.2 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号