Reverse for 'topic' with arguments '('',)' not found. 1 pattern(s) tried: ['……

问题如图

一般碰到这种问题要不是url出错了,要不就是topic和topics混淆了

我碰到的就是两个混淆了

在new_entry里面context = {'topics': topic, 'form': form}

把上面改为context = {'topic': topic, 'form': form}即可。

如果是url问题,去网上查看一次url()或者path()的具体写法就行。

原文地址:https://www.cnblogs.com/liyanyinng/p/11295378.html