I think you can write it like
(r‘^([\w-]+)/(\d{4})/(\d+)/(\d+)/(?P\d+)/$’,
find_seminar_occurrence),
it should be OK.
On 4月20日, 上午10时31分, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Changing my urls.py to this:
>
> from django.conf.urls.defaults import *
> from rdk.training.views import *
>
> url
Changing my urls.py to this:
from django.conf.urls.defaults import *
from rdk.training.views import *
urlpatterns = patterns('',
(r'^$', list_seminars),
(r'^([\w-]+)/(\d{4})/(\d{1,2})/(\d{1,2})/(?P
\d+)/$', find_seminar_occurrence),
)
fixed the prob
Hi everyone,
In my urls.py, I'm matching: a slug from a foreign key / the year /
month / day / pk of the record as such:
from django.conf.urls.defaults import *
from rdk.training.views import *
urlpatterns = patterns('',
(r'^$', list_seminars),
(r'[
3 matches
Mail list logo