How would you go about using seperate subdomains for certain apps in a
project? What I would like to do is something like this:

urlpatterns = patterns('',
    (r'^weblog\.[a-z0-9-]+\.[a-z0-9-]{3}',
include('mysite.blog.urls')),
    (r'^wiki\.[a-z0-9-]+\.[a-z0-9-]{3}', include('mysite.wiki.urls')),
    (r'^code\.[a-z0-9-]+\.[a-z0-9-]{3}', include('mysite.code.urls')),
    (r'^admin\.[a-z0-9-]+\.[a-z0-9-]{3}',
include('django.contrib.admin.urls')),
)

This will of course not work as the matching is done against the file
path and not the domainname.

Cheers,
Eivind Uggedal


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to