ImproperlyConfigured at /exam/selfdo/save_result
来源:互联网 发布:findcontours源码实现 编辑:程序博客网 时间:2024/05/29 01:51
错误:
ImproperlyConfigured at /exam/selfdo/save_resultThe included urlconf '5' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
错误代码:
return redirect(reverse('exam:show_record',answer_record.pk)) url : url(r'^selfdo/show_record/(\d+)$',views.show_record,name='show_record'),
原因:reversef反解析是传递参数的格式不正确
解决:
return redirect(reverse('exam:show_record',args=(answer_record.pk,)))以元组的方式传递
详见:URL反解析:reverse
阅读全文
0 0
- ImproperlyConfigured at /exam/selfdo/save_result
- 【Django】ImproperlyConfigured at / Empty static prefix not permitted
- exam
- Exam
- django报错:ImproperlyConfigured
- django.core.exceptions.ImproperlyConfigured:
- django ImproperlyConfigured异常
- JAVA EXAM
- Pass4Sure exam
- flex exam
- Happy exam
- youdao exam
- EXAM WAS
- CFA Exam
- hdu4473 Exam
- final exam
- Codeforces534A:Exam
- codeforces Exam
- SpringBoot 读取Maven ProjectVersion
- 作为一个萌新程序员学习者
- Python 实现多进程复制文件
- 强化学习(三)——动态规划解决MDP
- gbk编码系统环境运行utf-8编码的Qt程序时乱码解决办法
- ImproperlyConfigured at /exam/selfdo/save_result
- Redis 简介及其优势
- 生活小记39
- CK1956-2017年最新项目实战Spring Boot视频微服务整合Mybatis
- 【NOIP2017普及组正式赛】成绩
- 切分文件名提取文件扩展名或提取文件名
- HDOJ2101 A + B Problem Too
- 琐事
- 排序算法(一)