Re: 'str' object is not callable in base.py

2012-09-04 Thread Lachlan Musicman
On Wednesday, September 5, 2012, Bill Freeman wrote: > My best guess is that, for whatever reason, 'timetable_view' in your url > conf > has not been converted into the view function. Try actually importing the > view in urls.py and putting it as the target of the pattern *without* > the quotes.

Re: 'str' object is not callable in base.py

2012-09-04 Thread Lachlan Musicman
On Tuesday, September 4, 2012, zayatzz wrote: > From this post i can see this line beeing wrong . > > timetable = get_object_or_404(slug=slug) > > You also need to give object as one of the parameters for > get_object_or_404 shortcut: like this : > > https://docs.djangoproject.com/en/dev/intro/tut

Re: 'str' object is not callable in base.py

2012-09-04 Thread Bill Freeman
My best guess is that, for whatever reason, 'timetable_view' in your url conf has not been converted into the view function. Try actually importing the view in urls.py and putting it as the target of the pattern *without* the quotes. If this works, then figuring out whether you needed 'app_name.ti

Re: 'str' object is not callable in base.py

2012-09-03 Thread zayatzz
>From this post i can see this line beeing wrong . timetable = get_object_or_404(slug=slug) You also need to give object as one of the parameters for get_object_or_404 shortcut: like this : https://docs.djangoproject.com/en/dev/intro/tutorial03/?from=olddocs#a-shortcut-get-object-or-404 Alan