On 7/16/07, james_027 <[EMAIL PROTECTED]> wrote:
> Yes I am looking for the explanation of ?P syntax, is this
> something related to python's regex or django's own regex.
Ned's quick answer below is quite clear, I think, but if you'd like
more details from the horse's mouth (as it were), the offi
For a quick answer:
(?Pxxx)
means: "match xxx, and store it as a value named blah in the result".
This lets the regex machinery build a set of name/value pairs suitable
for use as arguments to a view function.
--Ned.
james_027 wrote:
> hi kenneth,
>
> thanks a lot, i think should be looking
hi kenneth,
thanks a lot, i think should be looking at official python doc more
than the dive into python.
cheers,
james
On Jul 17, 12:47 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 17-Jul-07, at 9:36 AM, james_027 wrote:
>
> > Yes I am looking for the explanation of ?P syntax, is thi
On 17-Jul-07, at 9:36 AM, james_027 wrote:
> Yes I am looking for the explanation of ?P syntax, is this
> something related to python's regex or django's own regex.
python
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
--~--~-~--~~~-
Yes I am looking for the explanation of ?P syntax, is this
something related to python's regex or django's own regex.
thanks
james
On Jul 17, 11:57 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> On 7/17/07, james_027 <[EMAIL PROTECTED]> wrote:
>
> > I am very new to django as well as py
On 7/17/07, james_027 <[EMAIL PROTECTED]> wrote:
> I am very new to django as well as python. how is it that ?P
> seems to be ignore by the regex function? I can't see any explanation
> in django's documentation. is this something magic or hack my django?
What do you mean by ignored? Are you get
hi,
urlpatterns = patterns('',
(r'^polls/$', 'mysite.polls.views.index'),
(r'^polls/(?P\d+)/$', 'mysite.polls.views.detail'),
(r'^polls/(?P\d+)/results/$',
'mysite.polls.views.results'),
(r'^polls/(?P\d+)/vote/$', 'mysite.polls.views.vote'),
)
I am very new to django as well as
7 matches
Mail list logo