![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
django
夜月不挂科
这个作者很懒,什么都没留下…
展开
-
xadmin 导入excel报错:TypeError: render_to_string() got an unexpected keyword argument 'context_instance'
from xadmin.plugins.utils import get_context_dict def block_top_toolbar(self, context, nodes): context = get_context_dict(context or {}) # 用此方法来转换 nodes.append(loader.render_to_string('x...原创 2019-07-12 09:21:08 · 201 阅读 · 0 评论 -
django项目所需基础目录文件
1. templates 文件夹(放置html文件) 2. 和项目相同名字的 文件夹包含下面三个文件 settings.py django的全局配置 urls.py url配置入口 wsgi.py 与服务器交互的文件(一般不需要修改) 3.manage.py 启动django的文件 4. 创建apps文件价(放置常见的app) 使用startap...原创 2019-09-10 09:42:49 · 229 阅读 · 0 评论