- 博客(3)
- 收藏
- 关注
转载 外键关联应用
from django.http import Http404from django.shortcuts import render,get_object_or_404from django.http import HttpResponse,HttpResponseRedirectfrom django.urls import reversefrom .models import Que...
2018-07-29 19:02:08 134
转载 django实现图片上传和图片显示
在开始之前我们要确认环境中已经安装了Pillow,如果没有安装,可以通过命令pip install Pillow来安装,这个是python的图像处理库。 第一步:数据库设置首先在项目中创建一个app。例如 python manage.py startapp app1然后将其加入到settings.py文件中。 INSTALLED_APPS = [ ...
2018-07-25 16:22:08 1747
转载 git 使用
首先就是git的安装了,这个直接可以百度就行第一步:在码云上建立新项目第二步:在想要作为仓库的文件夹下右键 git bash here, git init 建立本地git仓库第三步:git remote add origin [email protected]:xxxx/xxxx.git 可以先使用git remove -v查看本地信息第四步:git pull ori...
2018-07-18 10:05:57 151
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人