(r'^time/plus/\d{1,2}/$', hours_ahead),this line,you should use () for
d{1,2}
(r'^time/plus/\(d{1,2})/$', hours_ahead)
在 2011年2月18日星期五UTC+8下午11时04分13秒,Dipo Elegbede写道:
>
> Hi all,
>
> i am currently reading the django book and following the examples step by
> step.
>
> I have a view defined as
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Django Version: 1.0.4
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'mysite.books']
Inst
2 matches
Mail list logo