首页 > TAG信息列表 > syl
A Brief Statement for Joining "Cnblogs.com" (关于我选择博客园这件事)
Monologue (写在前面) Back to my junior middle school days, my friend applied for a QQ for me and I became a heavy user of QQ then. It also made a habit for me to post some trivia of mine on Qzone with my mobile phone as most of my friends did. Time flies andxshell项目部署
1:下载xshell,连接远程的阿里服务器 2:连接成功后要部署自己的环境 Ubuntu安装python 3. 7: 1:https://www.cnblogs.com/pengmn/p/12905723.html 安装mysql 2:http://www.mamicode.com/info-detail-2182600.html 安装虚拟环境 3:https://blog.csdn.net/qq_41621362/article/details04.增加media文件配置
1.增加media文件配置 1.1 syl/settings.py MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') # /teach/shiyanlou_project/syl/media 1.2 syl/urls.py from django.conf.urls.static import static from syl import settings urlpattern创建实验楼课程app模块以及配置图片路径
1.创建course模型 1.1 创建用户模型course python ../manage.py startapp course # 创建course模型 1.2 在setting.py中注册course模型(第一步) INSTALLED_APPS = [ 'course.apps.CourseConfig', ] # 注:pycharm无法联想,需要把apps文件夹设置为源根 1.3 syl/urls.py添加路由(第二步syl----图书管理系统后端
1.图书管理系统后端接口 books/models.py 中设置表 class Book(models.Model): btitle=models.CharField(max_length=32) bpub_date=models.DateField() bread=models.IntegerField() bcomment=models.IntegerField() is_delete=models.BooleanField(default=