Re: Problem with flatpages and absolute urls

2007-05-31 Thread orestis

OK never mind about this. It was my error, I was creating some URLs
like this:

/{{var}}/path1/path2/

and sometimes var wasn't set so the url becomes:

//path1/path2/

which replaces everything in the browser...


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



Problem with flatpages and absolute urls

2007-05-31 Thread orestis

I have a problem with flatpages.

When putting links in my templates, I use absolute URLs without
prepending http://hostname.com/

For example, Home gets interpreted by the browser as a
link to http://hostname.com/, and all is correct.

However, when a flatpage is being served, those links get interpreted
literally, so the link now is http:/// which is of course useless.

I suspect this is something to do with the 404 response that triggers
something in firefox.

So what am I supposed to do ? Should I prepend everything with the
hostname ? How can I get the current site (so I won't couple the
template to the site) ?

Thanks


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