I think i got it now with

(r'^zones/(?P<domain>[.\w]+)/$', get_domain)


On Feb 3, 10:44 am, mike171562 <support.desk....@gmail.com> wrote:
> 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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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