也许我对我的代码或其他东西视而不见..但这不行![/ p>
主要网址:
urlpatterns = patterns('',
(r'^', include('content_manager.urls')),
(r'^admin/filebrowser/', include('filebrowser.urls')),
(r'^admin/', include(admin.site.urls)),
)
content_manager app url:
urlpatterns = patterns('content_manager.views',
(r'^blog/archive/(?P<year>d{4})/(?P<month>[a-z]{3})/$', 'show_blog_archive'),
(r'^blog/(?P<pk>\d+)/', 'show_blog_post'),
(r'^(?P<url>[\w\-]+)/$', 'show_page'),
(r'^portfolio/', 'show_portfolio'),
(r'^$', 'index'),
)
进入此网址时:
/博客/存档/ 2011 / SEP /
我得到了404页
^ ^blog/archive/(?P<year>d{4})/(?P<month>[a-z]{3})/$
^ ^blog/(?P<pk>\d+)/
^ ^(?P<url>[\w\-]+)/$
^ ^portfolio/
^ ^$
^admin/filebrowser/
^admin/
^media/(?P<path>.*)$
我错过了什么?