摘要:
参考:http://stackoverflow.com/questions/17972347/error-command-gcc-failed-no-such-file-or-directory解决方案:安装:gccwinbinaries 地址:https://github.com/develersrl/gccwinbinaries 阅读全文
posted @ 2013-10-15 18:29
smallcode
阅读(2547)
评论(0)
推荐(0)
摘要:
方案:需要在settings.py的ALLOWED_HOSTS参数中添加域名:如:ALLOWED_HOSTS=['*']#允许所有域名访问ALLOWED_HOSTS=['localhost']#允许本地访问参考:http://stackoverflow.com/questions/15128135/django-setting-debug-false-causes-500-error 阅读全文
posted @ 2013-10-15 15:20
smallcode
阅读(1447)
评论(0)
推荐(0)
摘要:
方案1:取消CSRF(参见:http://www.cnblogs.com/wenjiashe521/archive/2012/08/29/2662041.html)from django.views.decorators.csrf import csrf_exempt@csrf_exemptdef index(request):方案2:使用render方法(不能使用render_to_response)(参见:http://stackoverflow.com/questions/10388033/csrf-verification-failed-request-aborted)def inde 阅读全文
posted @ 2013-10-15 09:49
smallcode
阅读(470)
评论(0)
推荐(0)
浙公网安备 33010602011771号