python django
Janelare
码农
展开
-
Django RuntimeError: maximum recursion depth exceeded
转自:http://stackoverflow.com/questions/15236556/django-runtimeerror-maximum-recursion-depth-exceededThe problem is in functools.py file. This file is from Python.To fix the problem replac转载 2016-10-23 16:10:24 · 981 阅读 · 0 评论 -
IOError: No translation files found for default language zh-cn.
IOError: No translation files found for default language zh-cn.检查 ...\Lib\site-packages\Django-1.10.2-py2.7.egg\django\conf\locale下无zh-cn文件夹,有zh-Hans和zh-Hant两个文件,其中 zh-Hans是简体中文 zh-Hant是原创 2016-10-23 16:18:32 · 9243 阅读 · 0 评论 -
python中添加中文 设置
1、一劳永逸方法Settings->File and Code Templagtes ->Python Script 下reformat according to style 中添加# -*- coding:utf-8 -*-2、在需要的单元第一行添加 # -*- coding:utf-8 -*-原创 2016-10-23 16:23:02 · 3383 阅读 · 0 评论 -
Pycharm中设置断点调试DJango
Pycharm中设置断点调试DJango.如果调试时断点无法命中,试试如下设置:Run->Edit configuration 增加一个python Name可任意设置Script填需要调试的工程的Manage.py原创 2016-10-25 15:00:53 · 3723 阅读 · 0 评论 -
django创建admin用户的账号密码设置
我用的是django-1.10.2版本。在创建sqlite数据库admin用户时创建用户和密码的方法G:\python\code\Test>python manage.py createsuperuserUsername (leave blank to use 'sh'):Email address: [email protected]:Password (again)原创 2016-11-08 11:37:52 · 25410 阅读 · 0 评论