问题1:
应用层(cms)的urls.py 中两个urlpatterns位置要换下,书里有错误啊,如果不换就会出现:
Page not found (404)
Request Method: | GET |
---|---|
Request URL: | http://localhost/cms/search/?q= |
No story found matching the query
问题2:
def __unicode__(self): 是双下横线,不是单下横线。
问题1:
应用层(cms)的urls.py 中两个urlpatterns位置要换下,书里有错误啊,如果不换就会出现:
Request Method: | GET |
---|---|
Request URL: | http://localhost/cms/search/?q= |
No story found matching the query
问题2:
def __unicode__(self): 是双下横线,不是单下横线。