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
Hi all,
Stumped on this one:
Traceback:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/tafe/timetable/2012-4/
Django Version: 1.4
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.con
5 matches
Mail list logo