Re: [Django] #9397: weird HttpResponseRedirect reaction to url

2009-02-09 Thread Django
#9397: weird HttpResponseRedirect reaction to url
+---
  Reporter:  billychasen| Owner:  nobody
Status:  closed | Milestone:
 Component:  HTTP handling  |   Version:  1.0   
Resolution:  invalid|  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by SmileyChris):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 3 months with no response from the reporter. Closing - but if anyone has
 the same problem, feel free to reopen.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9397: weird HttpResponseRedirect reaction to url

2008-10-23 Thread Django
#9397: weird HttpResponseRedirect reaction to url
+---
  Reporter:  billychasen| Owner:  nobody
Status:  new| Milestone:
 Component:  HTTP handling  |   Version:  1.0   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Old description:

> If I have a url defined, such as:
>
> (r'^hello$', 'mysite.index.views.hello')
>
> and let's say I have a page on http://mysite.net that redirects via
> HttpResponseRedirect(reverse('mysite.index.views.hello'))
>
> If I am at http://www.mysite.net -- it correctly goes to
> http://www.mysites.net/hello
> If I am at http://mysite.net (no www) -- it redirects to
> http://mysite.net/.net/hello
>
> It's easily fixed by changing the url definition to
>
> (r'^hello/$', 'mysite.index.views.hello')  (adding a trailing forward
> slash)
>
> Seems to me though, that this shouldn't be required (seems a little buggy
> and took awhile to track down)

New description:

 If I have a url defined, such as:
 {{{
 (r'^hello$', 'mysite.index.views.hello')
 }}}
 and let's say I have a page on http://mysite.net that redirects via
 `HttpResponseRedirect(reverse('mysite.index.views.hello'))`

 If I am at `http://www.mysite.net` -- it correctly goes to
 `http://www.mysites.net/hello`

 If I am at `http://mysite.net` (no www) -- it redirects to
 `http://mysite.net/.net/hello`

 It's easily fixed by changing the url definition to

 {{{
 (r'^hello/$', 'mysite.index.views.hello')
 }}}
 (adding a trailing forward slash)

 Seems to me though, that this shouldn't be required (seems a little buggy
 and took awhile to track down)

Comment (by mtredinnick):

 (Fixed description formatting to stop my eyes watering.)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9397: weird HttpResponseRedirect reaction to url

2008-10-19 Thread Django
#9397: weird HttpResponseRedirect reaction to url
+---
  Reporter:  billychasen| Owner:  nobody
Status:  new| Milestone:
 Component:  HTTP handling  |   Version:  1.0   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by SmileyChris):

  * component:  Uncategorized => HTTP handling

Comment:

 A slash shouldn't be required.

 But we'll need some more information to track the problem down - in fact,
 it sounds like it could be a web server mis-configuration rather than
 something which is happening in Django. If you run the local web server on
 your server (`manage.py runserver 0:8000`), what happens when you go to
 http://mysite.net:8000 ?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9397: weird HttpResponseRedirect reaction to url

2008-10-18 Thread Django
#9397: weird HttpResponseRedirect reaction to url
+---
  Reporter:  billychasen| Owner:  nobody
Status:  new| Milestone:
 Component:  Uncategorized  |   Version:  1.0   
Resolution: |  Keywords:
 Stage:  Unreviewed | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by billychasen):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I mistyped on the regex -- please ignore the $ (dollar sign) on the end

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #9397: weird HttpResponseRedirect reaction to url

2008-10-18 Thread Django
#9397: weird HttpResponseRedirect reaction to url
---+
 Reporter:  billychasen|   Owner:  nobody
   Status:  new|   Milestone:
Component:  Uncategorized  | Version:  1.0   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 If I have a url defined, such as:

 (r'^hello$', 'mysite.index.views.hello')

 and let's say I have a page on http://mysite.net that redirects via
 HttpResponseRedirect(reverse('mysite.index.views.hello'))

 If I am at http://www.mysite.net -- it correctly goes to
 http://www.mysites.net/hello
 If I am at http://mysite.net (no www) -- it redirects to
 http://mysite.net/.net/hello

 It's easily fixed by changing the url definition to

 (r'^hello/$', 'mysite.index.views.hello')  (adding a trailing forward
 slash)

 Seems to me though, that this shouldn't be required (seems a little buggy
 and took awhile to track down)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@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-updates?hl=en
-~--~~~~--~~--~--~---