Re: Serious Sessions Flaw/Bug/Error Discovered

2009-03-01 Thread James Mowery
of no progress in the IRC chat room. Thanks for the help everyone. On Mar 1, 3:45 am, James Mowery <jmow...@gmail.com> wrote: > The output from the command when viewing the page: > > Development server is running athttp://127.0.0.1:8000/ > Quit the server with CONTROL-C. > [01/Ma

Re: Serious Sessions Flaw/Bug/Error Discovered

2009-03-01 Thread James Mowery
understand the reasoning behind the numbers oddity, I am lead to believe that the issue is related? Why would the MIME types be changed, and how can I possibly fix it? Again, this happens when return None and/or return render_to_response ('mypage.html') is executed, so it's no silly error on my

Re: Serious Sessions Flaw/Bug/Error Discovered

2009-03-01 Thread James Mowery
at 23:21 -0800, James Mowery wrote: > > from django.shortcuts import render_to_response > > > class FullPageAdMiddleware(object): > >     def process_view(self, request, view_func, view_args, > > view_kwargs): > > >         request.sessio

Serious Sessions Flaw/Bug/Error Discovered

2009-02-28 Thread James Mowery
from django.shortcuts import render_to_response class FullPageAdMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): request.session['testing'] = request.session['testing'] + 1 if request.session['testing'] > 10: return None

Re: Customizing Admin for Large Data Sets

2009-02-18 Thread James Mowery
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#list-per-page Set the above to the number of items you would like to appear per page. The default is 100, so set it it to something more manageable. http://docs.djangoproject.com/en/dev/ref/contrib/admin/#ordering Set that to a DateField or

Re: Changing an ImageField file without re-upload

2009-02-16 Thread James Mowery
I don't really understand your question (perhaps English isn't your first language), and I'm too tired to try to understand, but maybe one of the following will help: http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-predefined-model-methods