Re: Test client - session data is empty and won't save new entries

2009-04-28 Thread Stefan Wallner
understand why the file CACHE_BACKEND wouldn't work? The docs don't seems to warn about that either. Anyone can explain? Stefan On Apr 27, 9:47 pm, Stefan Wallner <montodes...@googlemail.com> wrote: > Hi, > I am writing some tests for an application I am developing, in my test > ca

Test client - session data is empty and won't save new entries

2009-04-27 Thread Stefan Wallner
Hi, I am writing some tests for an application I am developing, in my test case's setUp I do self.dummy1 = User.objects.create_user('dummy1', 'n...@example.com', self.c = Client() self.c.login(username='dummy', password='dummy') In one of the tests I POST some data and then check that the

Re: mod_wsgi // Stack trace does not show in log files or gets sent by email

2008-12-20 Thread Stefan Wallner
I can poke around some more in the right place for what's going on. Thanks! Stefan On Dec 14, 5:50 am, Stefan Wallner <montodes...@googlemail.com> wrote: > Hi, > I am running Django 1.0 on Windows Server 2003, Python 2.5 with > mod_wsgi. I am having trouble capturing any exceptions in

mod_wsgi // Stack trace does not show in log files or gets sent by email

2008-12-13 Thread Stefan Wallner
Hi, I am running Django 1.0 on Windows Server 2003, Python 2.5 with mod_wsgi. I am having trouble capturing any exceptions in my code either through Apache's error log or by having an email sent to me. As a simple test I added a = [1,2,3] b = a[4] to the top of one of my views, which does

Post/redirect/get pattern for file upload with confirmation

2008-11-16 Thread Stefan Wallner
Hi, I am confused on how to best use the post/redirect/get pattern for the following problem: Part of the application I am writing is a basic file manager, i.e. it lists directory contents to users and lets users download files or upload a file to the directory. Upon upload the file is

help_text not showing for ForeignKey with models.TABULAR

2008-02-03 Thread Stefan Wallner
Hi, I have a model with the following field: --- class UseFor(models.Model): TYPE_CHOICES = ( ('X', "Page 1"), ('Y', "Page 2"), ) use_for = models.CharField(max_length = 1, choices = TYPE_CHOICES, core = True, verbose_name='use for', help_text='Show on which