Trouble accessing message_dict of ValidationError

2014-08-01 Thread Rosemary McCloskey
Hi, I'm writing a view to create a model, and am trying to capture any ValidationErrors and display them to the user. I have code that looks like this: # exceptions is a dict of errors already encountered try: # create model except ValidationError as e: for key, msg in e.message_d

Re: manage.py test doesn't respect DEBUG setting

2014-02-07 Thread Rosemary McCloskey
I'm sorry, please disregard this email. I found the answer in the documentation. On 14-02-07 10:36 AM, Rosemary McCloskey wrote: Hello, I am trying to run unit tests on my project, and the DEBUG setting is not being preserved during the tests. I'm using Django 1.6.1, with Pytho

manage.py test doesn't respect DEBUG setting

2014-02-07 Thread Rosemary McCloskey
Hello, I am trying to run unit tests on my project, and the DEBUG setting is not being preserved during the tests. I'm using Django 1.6.1, with Python 2.7.3 on Ubuntu 12.04. My settings file looks like this: DEBUG = True ADMINS = ( ('Rosemary McCloskey', 'rmc