jilingxf的个人博客分享 http://blog.sciencenet.cn/u/jilingxf

博文

按标题搜索
django创建项目
2019-7-16 13:17
前一段时间学习django时候没有写django创建项目 创建项目首先要进入到要创建项目的文件目录下,输入项目创建指令django-admin startproject django-admin startproject MyDjango tree 查看文件的目录 然后在安装app 顺便说一下,在ubuntu下可以使用bluefish作为python的ide ...
个人分类: python|1700 次阅读|没有评论
python 安装 出现0x80072f7d 错误
2019-7-11 11:05
python 安装出现 0x80072f7d错误 前一段时间计算机上安装了太多的程序,挺好的计算机(x240,8g内存)愣是跑不开Asreml,决定重装,安装python时遇到一个问题,0x80072f7d错误,挺折磨人的一个问题,百度了一圈,有人说是 VC2015运行库 问题,卸载vs2017运行库,安装2015运行库,也没解决,最后看到一个大神说了一句 有 ...
个人分类: python|3957 次阅读|没有评论
python 读取失去了server数据库并写入到excel
2019-6-14 15:59
一个神奇的事情,公司居然使用sqlserver数据库,要做一些基本的查询,写了一点代码,查查都谁使用系统了。 闲言少叙,直接上代码 #-*-coding:utf-8-*- importpymssql importxlwt importdatetime classMSSQL: def__init__(self,host,use ...
个人分类: python|2419 次阅读|没有评论
django学习笔记(2)——使用模板
2019-2-17 19:25
django使用DTL DTL可以参考https://docs.djangoproject.com/en/1.11/ref/templates/language/文档 ThisdocumentexplainsthelanguagesyntaxoftheDjangotemplatesystem.Ifyou’relookingforamoretechnicalpe ...
个人分类: python|1798 次阅读|没有评论
django render 字典值设置 报TTypeError 错误
2019-2-17 19:12
views.py defindex(request): #returnHttpResponse('helloword!') returnrender(request,'index.html',{'hello','helloblogkey!'}) index.html ...
个人分类: python|1832 次阅读|没有评论
python学习笔记(1)——创建应用
2019-2-17 15:30
创建应用的步骤 打开命令行进入manage.py的同级目录 命令行输入:pythonmanage.pystartappblog 添加应用名到sittings.py中的Installed_apps里 首先确认文件夹 命令行输入:python manage.py startapp blog 添加应用名blog 应用app下的目录树 D:\CODE\MYBLOG\MYBLOG\BLO ...
个人分类: python|2020 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 10:16

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部