4👍
✅
Try this urlconf
from books.views import AuthorDetailView
urlpatterns = patterns('',
#...
(r'^authors/(?P<pk>\d+)/$', AuthorDetailView.as_view()),
)
and navigate to:
http://localhost:8000/author/1/
0👍
I did the below change, and it worked.
Upgrade the debug toolbar to 1.5 or downgrade sqlparse to 0.1.x.
Source : https://github.com/jazzband/django-debug-toolbar/issues/862 (Big thanks to the user aaugustin from github)
- [Django]-How do I create and submit a form from a model inside a modal?
- [Django]-Python Piston equivalent for consuming RESTful APIs?
- [Django]-Can I query a secondary database from Django without ORM?
- [Django]-Which is the best python framework for developing Facebook application as on now
Source:stackexchange.com