NoReverseMatch at /new_entry/3/
Reverse for 'topic' with arguments '('',)' not found. 1 pattern(s) tried: ['topics/(?P<topic_id>\\d+)/$']
Request Method: | GET |
---|---|
Request URL: | http://localhost:8000/new_entry/3/ |
Django Version: | 2.0.6 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'topic' with arguments '('',)' not found. 1 pattern(s) tried: ['topics/(?P<topic_id>\\d+)/$'] |
Exception Location: | D:\PyCharm\pycharm50\.idea\learning_log\ll_env\lib\site-packages\django\urls\resolvers.py in _reverse_with_prefix, line 636 |
Python Executable: | D:\PyCharm\pycharm50\.idea\learning_log\ll_env\Scripts\python.exe |
Python Version: | 3.6.4 |
Python Path: | ['D:\\PyCharm\\pycharm50\\.idea\\learning_log', 'D:\\PyCharm\\pycharm50\\.idea\\learning_log\\ll_env\\Scripts\\python36.zip', 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32\\DLLs', 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32\\lib', 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36-32', 'D:\\PyCharm\\pycharm50\\.idea\\learning_log\\ll_env', 'D:\\PyCharm\\pycharm50\\.idea\\learning_log\\ll_env\\lib\\site-packages'] |
Server time: | Mon, 2 Jul 2018 09:30:24 +0000 |
源代码:
from django.shortcuts import render from .models import Topic