i am not familiar with DB opertions. usually i stroe data to txt and other formats. as DB is more and more popular, i want to try it too.

i have some knowledge about Django. the DB opertions in Django is very easy than the DB source code. so i decided to reuse the Django DB operations out of Django projects.

it is very useful for small progress.

import os,sys
sys.path.append('Django project path')
os.environ['DJANGO_SETTINGS_MODULE']='settings'
from .views import viewClasses
import django
django.setup()

All right, we can reuse the Django DB operations for the 'viewClasses' now.

it is practical for basic DB operations like Add / Delete / Update / Retrieve

Hope it can help you.

最新文章

  1. ASP.NET MVC Module
  2. asp.net 验证控件
  3. getchar的利用
  4. Js-字符串截取substring,分割split,指标indexOf,拼接John
  5. OS10.11系统下 安装cocoapods 以及 安装cocoapods-xcode-plugin-master插件来加载三方框架
  6. 快学Java NIO 续篇
  7. for语句
  8. css三角形的实现
  9. 深入理解Javascript
  10. Junit4 架构设计系列(2): Runner.run()与Statement
  11. java_IO流小结
  12. Spring4 事务管理
  13. 前端的UI设计与交互之布局篇
  14. Dynamics CRM2016 Web API之Retrieve Multiple
  15. echart四川地图
  16. xshell 禁用铃声 提示音
  17. 【bzoj4765】 普通计算姬
  18. 170407、java基于nio工作方式的socket通信
  19. Linux:redhat6.5使用yum时提示需要注册问题解决方案
  20. ZC__问题

热门文章

  1. JavaScript HTML DOM学习记录
  2. jreble安装 in idea
  3. python获取命令行参数
  4. Mybatis的关联查询(一)
  5. 使用rem单位的问题——Google下字体很大
  6. String.Compare 方法 (String, Int32, String, Int32, Int32)
  7. Expression Blend实例中文教程(2) - 界面快速入门
  8. PL/SQL之流控制语句
  9. log4js日志
  10. pm2在node中的应用