Re: Weird test-behaviour in combination with localization

2012-07-31 Thread Andre Schemschat
within its own tests, which affect my other tests? On Tuesday, July 31, 2012 9:21:28 PM UTC+2, Andre Schemschat wrote: > > Hey together, > I was just writing some tests for my views and i stumbled upon a > localization error, which i cant figure out :/ > I have a test that

Weird test-behaviour in combination with localization

2012-07-31 Thread Andre Schemschat
Hey together, I was just writing some tests for my views and i stumbled upon a localization error, which i cant figure out :/ I have a test that checks the form-validation returnes the correct errors-messages for specific input data. Basicly what i feed to the view are the field-names and their

Re: Catch or raise exception designissue

2012-07-15 Thread Andre Schemschat
Hey, thanks for your replies. so the general idea is to dont catch the 500's, if there really is an situation which shouldnt happen. Thats was my first thought too, so i think i will stick with that and just code defensivly with exception-raising, when critical situations appear :) On Saturday,

Re: Form 'POST' to a database

2012-07-11 Thread Andre Schemschat
> > Hey, >> > yeah, it basicly is. Just a very, very basic example (And sorry if i could highlight this as code, i didnt find something in the format-menu :/ ). Of course you should validate your input first. And if you just want to edit a Model within a form, you should check on the ModelForm-C

Catch or raise exception designissue

2012-07-11 Thread Andre Schemschat
Hi everybody, i'm currently working on my first django-application and stumbled upon a design issue, which i cant quite decide how to handle and i thought i may ask here, if there are any guidelines as to how to handle this :) In my view i have, naturally, some code to process the request and ret