Re: faking request path

2007-07-09 Thread Collin Grady

It sounds like you're barking up the wrong tree ;)  "faking" a request
path on django's side would not alter your template links one iota, so
they'd still be bad :)

On Jul 9, 7:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hello all!
>
> Is there an easy way to fake the request path in django and/or pyton?
> I'm looking for something like this:
> a django page which is called with this 
> URL:http://www.test.ch/test1/test2/test3
> should thinks it is run in the top-folder that means:http://www.test.ch
>
> I need that because I have to use somehow already given templates,
> which I cannot edit, and which believe they are always run in the top-
> domain folder.
>
> Thanks in advance


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



Re: faking request path

2007-07-09 Thread Carl Karsten

[EMAIL PROTECTED] wrote:
> Hello all!
> 
> Is there an easy way to fake the request path in django and/or pyton?
> I'm looking for something like this:
> a django page which is called with this URL: 
> http://www.test.ch/test1/test2/test3
> should thinks it is run in the top-folder that means: http://www.test.ch
> 
> I need that because I have to use somehow already given templates,
> which I cannot edit, and which believe they are always run in the top-
> domain folder.
> 

I'm not really sure what you mean by "believe' ...  maybe post some template 
code and resulting links.

My guess is you can do what you in urls.py.

This is sounding like the "portable app" problem, discussed at
http://groups.google.com/group/django-hotclub

Carl K

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



faking request path

2007-07-09 Thread [EMAIL PROTECTED]

Hello all!

Is there an easy way to fake the request path in django and/or pyton?
I'm looking for something like this:
a django page which is called with this URL: 
http://www.test.ch/test1/test2/test3
should thinks it is run in the top-folder that means: http://www.test.ch

I need that because I have to use somehow already given templates,
which I cannot edit, and which believe they are always run in the top-
domain folder.

Thanks in advance


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