![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Django
Rander.C
这个作者很懒,什么都没留下…
展开
-
django tastypie filtering 数据过滤(条件查询)
class BlogArticleResource(ModelResource): class Meta: queryset = BlogArticle.objects.all() fields = ['content','title','id','author_id'] filtering = { "c原创 2014-10-06 00:37:18 · 2406 阅读 · 0 评论 -
tastypie 多表关系
看了论坛上这篇文章,帮我解决了tastypie 多表关系通过外键查询相关联的数据库,三个数据模型如下:class Customer(models.Model): id = models.IntegerField(primary_key=True) joining_dtm = models.DateTimeField() isactive = models.Integ原创 2014-10-02 13:50:38 · 1785 阅读 · 0 评论 -
关于Django版本不对遇到的一个问题
工作环境Ubuntu,因为买了个固态硬盘,重装了一个系统,之前原创 2014-09-25 20:54:47 · 3224 阅读 · 0 评论 -
Ubuntu 卸载Django
删除: 终端输入代码:1python -c"from distutils.sysconfig import get_python_lib; print get_python_lib()" 得到路径 /usr/lib/python2.7/dist-packages 删除原创 2014-09-25 20:47:07 · 3632 阅读 · 0 评论 -
Ubuntu12.04 Python Django 安装
Ubuntu 12.04Python Django 环境安装python 环境是自带的sudo apt-get install python-setuptoolssudo easy_install django至此Django安装好了推荐大家使用iPython这个交互式Shell,它能支持自动补全sudo apt-get i原创 2015-04-09 23:05:30 · 983 阅读 · 0 评论