I did this with some middleware having lots of sub-domains,
red.whatever.com, yellow.whatever.com etc... but I forget what it
was/is called. It's probably on Django snippets.
This looks like it might help...
http://eikke.com/django-domain-redirect-middleware/
--~--~-~--~~
phillc wrote:
> different domains = different settings.py = different urls.py
>
Not necessarily. An apache vhost can have a singe instance of a Django
site, and multiple ServerAlias entries could mean that several different
DNS names are used to access the same instance of Django.
signature.a
different domains = different settings.py = different urls.py
On Dec 23, 12:30 pm, Dan Ger wrote:
> Hi, I have searched to no avail and decided to post here.
>
> I have a django app that is going to have multiple domain names and
> would very much like to use the domain name in the urls.py to he
On Dec 26, 1:46 am, "Geoffrey Ducharme"
wrote:
> I wanted to know if your patch can help with sub-domains. It's hard for me
> to tell with a diff file.
yes it also will works well with sub-domains.
>
> On Wed, Dec 24, 2008 at 1:25 AM, Spike^ekipS wrote:
>
> > I also tried to find the solutio
I wanted to know if your patch can help with sub-domains. It's hard for me
to tell with a diff file.
On Wed, Dec 24, 2008 at 1:25 AM, Spike^ekipS wrote:
>
> I also tried to find the solution to handle multiple domain without
> using django site framework, but i did not find anything, so i made
I also tried to find the solution to handle multiple domain without
using django site framework, but i did not find anything, so i made a
small patches to implement it. here is the usage,
urls.py:
urlpatterns = patters("",
...
url(r'^', include("example_com.urls"), site="^www.example.
Hi, I have searched to no avail and decided to post here.
I have a django app that is going to have multiple domain names and
would very much like to use the domain name in the urls.py to help
with routing. I have been unable to find a built in way of using this
and wanted to see if anyone else