yes, i use
urls.py file
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^attachments/', include('attachments.urls')),
(r'^', include('lbforum.urls')),
# Examples:
# url(r'^$', 'ghlbforum.views.home', name='home'),
# url(r'^ghlbforum/', include('ghlbforum.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
您是否在项目的主URL文件中包含LBForum URL?你知道吗
https://github.com/vicalloy/LBForum#id7
当中没有具有匹配标记的URL模式时,将引发NoReverseMatch错误网址.py文件
相关问题 更多 >
编程相关推荐