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.
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
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
>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
4 matches
Mail list logo