开发者

Django Keyword Search Not Working

开发者 https://www.devze.com 2023-02-02 03:46 出处:网络
I bought this book and Im busy working through it. Now what I found is that someone has already come across this same problem an开发者_JS百科d posted here on this URL:

I bought this book and Im busy working through it. Now what I found is that someone has already come across this same problem an开发者_JS百科d posted here on this URL:

"Practical django Projects, 2nd ed., source code

Im having the exact same problem as above except that while it shows on the backend when I perform a search for a page linked to a certain keyword I get 0 results all the time. Can someone please help me out with this.

Thanks


I have posted there this answer, I am reposting it here, maybe it will help you.

Do you have:

from django.contrib import admin
admin.autodiscover()

in your urls.py? And also something like this:

urlpatterns = patterns('',
    ...
    (r'^admin/', include(admin.site.urls)),
)

And also have you turned on admin app in settings?

INSTALLED_APPS = (
    ...
    'django.contrib.admin',
)
0

精彩评论

暂无评论...
验证码 换一张
取 消