1👍
✅
Did you include the LBForum urls in your project’s main URL file?
https://github.com/vicalloy/LBForum#id7
(r'^attachments/', include('attachments.urls')),
(r'^', include('lbforum.urls')),
NoReverseMatch error is thrown when there is no URL pattern with a matching tag in the urls.py file
0👍
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)),
)
- [Answer]-Django serialization get foreign key object with primary key object
- [Answer]-How to serve static files 'conditionally' in Django
Source:stackexchange.com