Re: Bug (in 1.4+) double slash in URL leads to incorrect ``request.build_absolute_uri()``

2012-05-14 Thread Yo-Yo Ma
I've just created https://code.djangoproject.com/ticket/18314 and intend to take a look a better into the implementation of ``build_absolute_uri()`` tonight. On May 13, 10:02 pm, Russell Keith-Magee wrote: > Thanks for the report -- but is there a particular reason that you're > reporting this he

Re: Django 1.4 bug: Using cache_page and csrf_protect decorators results in a messy Set-Cookie response header.

2012-05-14 Thread Suteepat Damrongyingsupab
Hi all, Thanks for your help to investigate the issue. I didn't have a chance to look further into it. So every class-based views that subclass from TemplateResponseMixin are affected by this bug because it uses TemplateResponse as its response_class. On Monday, May 14, 2012 7:28:50 PM UTC+7, R

Re: Help...........!!!

2012-05-14 Thread Tanveer Ali Sha
Thank you for mail :) On Mon, May 14, 2012 at 4:40 PM, James Bennett wrote: > Questions about how to use Django should be directed to the > django-users mailing list. This list is for discussion of development > of Django itself. > > -- > You received this message because you are subscrib

Re: Django 1.4 bug: Using cache_page and csrf_protect decorators results in a messy Set-Cookie response header.

2012-05-14 Thread Rafał Stożek
Oh, I see where the bug is. SimpleTemplateResponse.__getstate__ does not call super(). And HttpResponse class serializes cookies in its __getstate__ method. So basically SimpleTemplateResponse doesn't serialize cookies correctly. On Mon, May 14, 2012 at 1:25 PM, Rafał Stożek wrote: > Could you t

Re: Django 1.4 bug: Using cache_page and csrf_protect decorators results in a messy Set-Cookie response header.

2012-05-14 Thread Rafał Stożek
Could you try again to cause bug with SafeView class, but this time using TemplateResponse class instead of render_to_response shortcut? On Mon, May 14, 2012 at 10:24 AM, Suteepat Damrongyingsupab < tianiss...@gmail.com> wrote: > I've just found the root cause of the problem. > The bug occurs whe

Re: NoneType object has no attribute in POST/PUT a resource with nested resources (django, tastypie)

2012-05-14 Thread Alberto Díaz
Thanks and sorry Karen El jueves, 10 de mayo de 2012 14:04:10 UTC+2, Karen Tracey escribió: > > Please ask questions about using Django on django-users, not here. The > topic of this list is the development of Django itself. (Also when you post > to django-users for this problem it would help pe

Subclass handle_uncaught_exception

2012-05-14 Thread Rory Campbell-Lange
I have a custom database interface with (amongst other things) a lazy rowgetter. Our database provides custom exception messages when, for instance, a rate limit is exceeded. Because of the "laziness" of the rowgetter, the except clause in my view (shown below) is not triggered, and control falls

Re: Help...........!!!

2012-05-14 Thread James Bennett
Questions about how to use Django should be directed to the django-users mailing list. This list is for discussion of development of Django itself. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-

Help...........!!!

2012-05-14 Thread Ali Shaikh
Hi Django.. I Am implementing Django front end setup and Am using SQLite as Database for my project...Am new to djnago family . Help me to implement 1.Determine all network interface connected to system 2.Determine all ENABLED interfaces 3.start monitoring all enabled interface. Thank

Re: Django 1.4 bug: Using cache_page and csrf_protect decorators results in a messy Set-Cookie response header.

2012-05-14 Thread Suteepat Damrongyingsupab
I've just found the root cause of the problem. The bug occurs when using ListView (I haven't tested other CBV though) and decorating it with cache_page and csrf_protect. I've tested it with a new clean project and left settings.py as a default. The simple code I used to test is as follows: *urls.