Re: Django 1.7 data migrations?

2014-02-10 Thread Kent Engström
Andrew Godwin writes: > Hi Kent, > > The documentation is not yet complete, hence your confusion. There is > indeed provision for data migrations in the new system, with an > operation called RunPython - I'll see if I can get documentation up > for it this week. OK, sple

Django 1.7 data migrations?

2014-02-10 Thread Kent Engström
grate to point X, run a script, continue to migrate? Should this be mentioned somewhere in the docs? Sorry if I'm confused about this, / Kent Engström, Lysator -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe

Re: CSRF protection and cookies

2011-09-16 Thread Kent Engström
on is mostly free. Of course. The sites I'm thinking of are HTTPS only. I had forgot about the Referer header check. It seems that it would stop the subdomain-to-subdomain CSRF attacks as long as the site is only using HTTPS, wouldn't it? Thanks for your work on this, / Kent Engs

Re: CSRF protection and cookies

2011-09-15 Thread Kent Engström
appened yet. We can > do better than we do now, but not without somewhat changing the > properties of the system. If you would like help with testing etc for this, I hope I can offer some time. BTW, should I submit a ticket about this to the Django ticket database or is there a more general t

CSRF protection and cookies

2011-09-14 Thread Kent Engström
the second instance of the nonce (that will be compared to the form field) from a cookie to a session variable (at least when a session is available)? Would that result in other problems instead? / Kent Engström -- You received this message because you are subscribed to the Google Groups &q

Re: Unit tests with Postgres backend and transaction errors

2008-03-10 Thread kent
If I am ranting it is only because I would really like some feedback. Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers

Re: Unit tests with Postgres backend and transaction errors

2008-03-10 Thread kent
pping every operation in a try/except/ rollback block. Command line usage requires manually calling transaction.rollback() after any error. - undocumented - unhelpful - is there a benefit to the current approach? - unneccessary - AFAICT there is no disadvantage to automatic rollback of *

Re: Unit tests with Postgres backend and transaction errors

2008-03-09 Thread kent
Error: transaction.rollback_unless_managed() A more general fix might be to wrap each use of cursor.execute() in a try/except block such as the above. Kent --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj