我在flatpages的settings.py中做了必要的更改。然后在admin中,我创建了一个扁平页面/about/。但是当我运行http://localhost:8000/about/时,它呈现的是404,即No FlatPages matches the given query。我的default.html在project/templates/flatpages/default.html.中urlpattern
我写了一个链接缩短应用程序,它接受一个常规的长url,并创建一个10个字符的字母数字字符串,它使用Django-1.5.1进行重定向。
生成的字符串中的重定向链接与:url(r'^(?P<short>\w+)/$', 'target'),一起工作得很好,但是由于某些原因,当我尝试访问其他两个视图(一个是创建一个新的短url,另一个是查看所有链接)时,我得到一个404页面,上面显示"NoMini matches The