-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Amirouche schrieb:
>> what I want is to let mysite/urls.py include the other urlconfs
>> according to the domain.
>> e.g. let poll.mydomain.com include the mysite/polls/urls.py
>> blog.mydomain.com => mysite/polls/blog.py
>> mydomain.com => mysite/hp/urls.py
>>
> 
> 
>> is there a way to do this?
> 
> You could trick the user with apache rewrite
> 
> or have a look at this 
> http://www.rossp.org/blog/2007/apr/28/using-subdomains-django/
> 
> 
the blogpost does not help me, because I want to serve different
applications.
on the blogpost you call the same view on all subdomains, this is not
what I want.

mod_rewrite might be a joice, but this will make problems with
django.core.urlresolvers.reverse
I'll get the wrong url for sure.
e.g. I mod_rewrite everything on domain poll.example.com to
/mysite.fcgi/poll/
this will work fine, but then poll will print out it's links as
/poll/xyz/ which will then result in mod_rewrite calling
/mysite.fcgi/poll/poll/xyz/

that's not what I want.
greetz Paul Rauch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iQIVAwUBRs0p7BG67lyyQrltAQLBaQ/+OsQKjpenvIVd7xAw4CuGVjt+aFhuP3ly
q43FhNfiCDIIE6qTdTKcf2AiA58YH0vOnCC8zmGZT089yo97Rf2WVjZHn/JDyQYW
5ll323ohNzCPb/S4MdN33NANOXZdw3W2kufDFNWeFxFJ7q23IlxNGKbEFP4XPqER
8gTxiLU4L4KqQPk9b1m3eB254uOa7FBfWoZN9eD+3c4laWRYJUGz4VfENgsjXz0v
NlkUhi8vVM7aeYFsCBlxqPGF6S5auf6QpCQ5JfQ8hkiCJYUhrF1Tcdi+UmBPePwc
U7ro7c67WUHAmxQ7qtby+T9FlGaytvNLEnnlmuARZ+rjQuXjBGL2J+EFfHBZ/ogB
T2lcMgEEEOs37sN/HOiucqD8mFfVNFr9A6DNfeUR9LdX5IuYcZjPqN1SawZFjU30
HkQccGIwofoHFuV4KBwkt3j83jCA5tXD9XaK9VJAHdgDFU3kLU0NojXzeXWoeuXX
rm/6Y/hmynGDe0HGH26tZ7m7ggWUclnpJltbyvdWhUEN1DQmIGHZMerX7mAC3ORZ
jkD4UWXwH8Dnjo8j0+FPGhh/7kSFW6aaeSduCCNl1Bju2mnf1ZMMbIfQjLIkFeAr
LGfpndcmWIe8InZEfQ72xbsRFfDuou9//jir/zDcJeZOimaeflAnnsspHA7aigrN
zAaKJFB3dNM=
=Qvty
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
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