Upload MySQL details 更新包括 crebas.sql 在内的所有数据库相关文件,这部分文件不是必要的,对于完整的 Django 项目没有帮助,仅供参考!
Upload MySQL details
更新包括 crebas.sql 在内的所有数据库相关文件,这部分文件不是必要的,对于完整的 Django 项目没有帮助,仅供参考!
Campus Canteen Ordering System
HITSZ 2021 年秋季学期「数据库设计」课程实验项目,基于 MySQL+Django 实现校园食堂点餐系统。
访问我的博客查看完整开发文档 🚀 :https://hwcoder.top/DB-Project
主要环境:
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 //我的订单
初始化:
克隆本项目 git clone https://github.com/hewei2001/campus-canteen-ordering.git
git clone https://github.com/hewei2001/campus-canteen-ordering.git
卸载原依赖 pip uninstall -y -r requirement.txt
pip uninstall -y -r requirement.txt
配置新依赖 pip install -r requirements.txt
pip install -r requirements.txt
数据库准备:
打开 MySQL Workbench 服务器,创建本地数据库 create database django_CCOS
create database django_CCOS
项目参数修改:打开 settings.py 配置文件,找到 MySQL 自定义参数,修改为你自己的配置
项目启动,进入项目 django_CCOS 目录,执行:
django_CCOS
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
前端访问:http://127.0.0.1:8000
后台访问:http://127.0.0.1:8000/admin
python manage.py createsuperuser
感谢 Yiwen-Ding 小朋友!
BTW,如果这个项目帮到了你,就点个 吧 ~
基于 MySQL+Django 实现校园食堂点餐系统。
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Campus Canteen Ordering System
HITSZ 2021 年秋季学期「数据库设计」课程实验项目,基于 MySQL+Django 实现校园食堂点餐系统。
访问我的博客查看完整开发文档 🚀 :https://hwcoder.top/DB-Project
主要环境:
系统功能
项目结构 📝
快速开始 🚀
初始化:
克隆本项目
git clone https://github.com/hewei2001/campus-canteen-ordering.git
卸载原依赖
pip uninstall -y -r requirement.txt
配置新依赖
pip install -r requirements.txt
数据库准备:
打开 MySQL Workbench 服务器,创建本地数据库
create database django_CCOS
项目参数修改:打开 settings.py 配置文件,找到 MySQL 自定义参数,修改为你自己的配置
项目启动,进入项目
django_CCOS
目录,执行:python manage.py makemigrations
python manage.py migrate
python manage.py runserver
前端访问:http://127.0.0.1:8000
后台访问:http://127.0.0.1:8000/admin
python manage.py createsuperuser
效果图
鸣谢
感谢 Yiwen-Ding 小朋友!
BTW,如果这个项目帮到了你,就点个
吧 ~