如下图,每当我想点save changes的时候,就会报错page not found. 找了很久也没发现错误在哪里,往下是代码,Django版本1.11,谢谢。
urls.py
"""定义learning_log的URL模式"""
from django.conf.urls import url
from . import views
urlpatterns = [
# 主页
url(r'^$', views.index, name='index'),
# 显示所有的主题
url(r'^topics/$', views.topics, name='topics'),
#显示特定主题的详细页面
url(r'^topics/(?P<topic_id>\d+)/$', views.topic, name='topic'),
# 用于添加新主题的网页
url(r'^new_topic/$', views.new_topic, name='new_to