Re: escaping metacharacter in url pattern

2011-04-26 Thread Michel30
That is just terrific Raúl, thanks a lot! code I ended up using: url(r'^cgi-bin/DocDB/ ShowDocument','docDB.views.retrieveDocumentVersion') documentid = int(request.GET.get('docid')) version = request.GET.get('version', '') On Apr 21, 4:16 pm, Raúl Cumplido wrote: > sorry copy&past

Re: escaping metacharacter in url pattern

2011-04-21 Thread Raúl Cumplido
sorry copy&paste error: *u*rl(r'^cgi-bin/DocDB/ShowDocument\$', 'docDB.views.retrieveDocumentVersion'), 2011/4/21 Raúl Cumplido > Hi, > > That data is not part of the path they are part of the querystring. It > would be better to set your urls.py as: > > rl(r'^cgi-bin/DocDB/ShowDocument\$', > '

Re: escaping metacharacter in url pattern

2011-04-21 Thread Raúl Cumplido
Hi, That data is not part of the path they are part of the querystring. It would be better to set your urls.py as: rl(r'^cgi-bin/DocDB/ShowDocument\$', 'docDB.views.retrieveDocumentVersion'), And retrieve values in your view as: request.GET.get('docid', '') and request.GET.get('version', '') L

escaping metacharacter in url pattern

2011-04-21 Thread Michel30
Hey guy's, I'm trying to replicate behaviour of a legacy CMS and stick it into a new Django project. Here is an example of my url: http://hostname:port/cgi-bin/DocDB/ShowDocument?docid=19530&version=1 I want to filter the docid and version with a regex in a urlpattern to use later in a function