On 20/07/10 13:01, joconnell wrote:
> Hi,
> 
> If you use something like
> 
> r'^(?P<page>.+)/$'
> 
> then a variable called page will get passed to your view. It will
> contain the string that has been matched against the specified pattern
> (in this case any character 1 or more times (.+))
> 

Thanks John and everyone else who replied - the regex above did the
trick for me. I've now got the whole site running from just a single
view called servePage, and I don;t have to update my URL list each time
I add a new page to the database, which was exactly what I wanted.

Thanks again folks!


-- 

Regards

Phil Edwards   |  PGP/GnuPG Key Id
Brighton, UK   |  0xDEF32500

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to