2014年01月30 - I have a code as follows:
我有如下代码:
fromdjango.utils.timezone import get_current_timezone, make_aware
make_aware(some_datetime, get_current_timezone
2013年01月03 - I would like to make a matrix that makes a list of nested dictionaries. But I can't find out how to make a matrix, end even less how to put my values
2012年07月01 - I have this code from Kohana (it's easily understandable) and I want to convert this to Django ORM given the ff. models:
我有来自Kohana的这个代码(这很容易理解)我希望在给
2011年04月20 - django on the server side?
我正在尝试为网页添加一些基本的动态功能。如何在客户端使用JavaScript通过服务器端的django访问数据库信息?
I feel like it should be easy to have a JavaScript function
2016年02月16 - I'm trying to do a simple query in which I retrieve all products from all payments from a single user object.
我正在尝试做一个简单的查询,在查询中,我从单个用户对象的所有付款中检索所有
2014年08月06 - a list with 3 objects selected at random from a djangoquery.
我想返回一个列表,其中包含从django查询中随机选择的3个对象。
I tried this:
我试过这个:
def get_small_list():
indexes
2015年09月28 - this be done? Here's what my view.py file looks like:
现在,我可以为每个人制作页面,在标题中显示他们的名字。我想做的是显示对该特定人员的交易。如何才能做到这一点?这是我的view.py文件的样子:
fromdjango.shortcuts import