Different URLCONF for different domains

56 views
Skip to first unread message

Guy Tamir

unread,
Mar 12, 2014, 8:03:54 AM3/12/14
to django-d...@googlegroups.com
Hey all,

I have a Django app that serves to multiple domains.
In the primary domain (lets call it primary.com) I have some page that are server via the path - primary.com/a/<key>
I want users from another domain (lets call it secondary.com)  to be able to get to this path : primary.com/a/<key> by entering secondary.com/<key>
(Both domains have a CNAME record pointing to the same server)

Is there a way to reconfigure the URLCONF for specific domains so that it will automatically go to a different urls file?

Best,
Guy

Tim Graham

unread,
Mar 12, 2014, 8:20:27 AM3/12/14
to django-d...@googlegroups.com
This discussion list is for the development of Django. Questions about how to use Django with your project belong on the django-users mailing list.
Reply all
Reply to author
Forward
0 new messages