I think this is related to WSGI.

On Oct 6, 7:17 pm, Merrick <[EMAIL PROTECTED]> wrote:
> That is the approach I took and how I resolved the original problem
> with the 404. It led me to find that "AllowEncodedSlashes On" in
> Apache is needed for encoded slashes to be allowed in the pathname
> information following the filename.
>
> The problem now is that
>
> http%3A%2F%2F prints http:/ in my template,
>
> http%3A%2F also prints out as http:/
>
> The second encoded forward slash is being omitted.
>
> http%3A%2F$2Fwww.wired.com%2Fprints http:/www.wired.com/
>
> http%3A%2F$2Fwww.wired.com%2F%2Falso prints http:/www.wired.com/
>
> Thanks for looking at this.
>
> On Oct 6, 5:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>
> > On Mon, 2008-10-06 at 16:10 -0700, Merrick wrote:
> > > keith, thanks for trying.
>
> > > %2f is the encoded value of /, but urls contain other characters as
> > > well not just alphanumeric.
>
> > I think you're debugging the wrong piece of the problem here. Your
> > original regular expression must have been pretty close to the right
> > answer, although since it wasn't a valid reg-exp (mis-matched
> > parentheses, it's hard to tell). Using "." to match "any character" was
> > the right approach.
>
> > I would start debugging this by trying a simpler example. You said the
> > pattern matched "www.wired.com" and then leapt straight to "http%3A%2F%
> > 2Fwww.wired.com%2F". So what about something in between, say "%3A" or
> > just "www.wored.com%2F".
>
> > Also, where do things fail? Does the regular expression not match
> > anything or does the view not finish for some reason (i.e. do you know
> > for sure that the view isn't being called)? Because, again, your
> > original regular expression, once you fix the syntax error, looks like
> > it should work correctly.
>
> > Go back to the start, fix the error with the missing parenthese, start
> > from something you know works and then add one character at a time until
> > it fails. Put debugging prints in your view so that you know if the view
> > gets called or not.
>
> > Regards,
> > Malcolm
>
>
--~--~---------~--~----~------------~-------~--~----~
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