> I am building an app that passes a domain name to urls.py like so "/
> sites/domain.com/'
>
> but I cannot get my urls.py to match the 'domain.com' it only seems
> to match if i just use domain without the dot
>
> I have tried
>
> (r'^zones/^[^/]+/', get_domain),
> (r'^zones/(?P<domain>\w+)/', get_domain),
> (r'^zones/(?P<domain>\w+)$', get_domain),
>
> and none seem to be able to catch it
Just curious - did you notice that you have "sites" in the question,
but "zones" in the urls.py?
And the obvious question - did you know that dot has a special meaning
in regular expressions so you probably want to write "\."
(backslash-dot).
Just my 2 cents
Jirka
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.