Re: Making assertNumQueries more useful by printing the list of queries executed on failure

2013-11-15 Thread Aymeric Augustin
On 15 nov. 2013, at 18:38, gavinw...@gmail.com wrote: > Every time I get a failure on one of these types of tests I go in and edit > the code to print out the queries that were executed. There's no way to > troubleshoot the problem without know the queries. I have also typed `from django.db

Re: BCrypt and PBKDF2 Password Hash Caching

2013-11-15 Thread Javier Guerra Giraldez
On Fri, Nov 15, 2013 at 2:27 PM, Marc Tamlyn wrote: > That said, sounds an interesting solution and would make a good library. > However I'm not knowledgeable enough to say if it is a good idea from a > security perspective. imagine this scenario: an attacker gets the

Re: BCrypt and PBKDF2 Password Hash Caching

2013-11-15 Thread Marc Tamlyn
I would suggest that's the kind of thing which is unlikely to get merged, mainly for security reasons as someone could potentially configure it more wrong than other things. It's also only useful or relevant for nonstandard large deployments such as yourselves. That said, sounds an interesting

BCrypt and PBKDF2 Password Hash Caching

2013-11-15 Thread Erik van Zijst
We run bitbucket.org and are upgrading from SHA1 to BCrypt hashes. We offer Basic Auth support which is used a lot. So much so that we can't handle the increased load from these more expensive hashes. This has been the cause behind a recent self-inflicted DOS. BCrypt and PBKDF2 are ~4-5 orders

Re: Making assertNumQueries more useful by printing the list of queries executed on failure

2013-11-15 Thread gavinwahl
Every time I get a failure on one of these types of tests I go in and edit the code to print out the queries that were executed. There's no way to troubleshoot the problem without know the queries. On Wednesday, November 13, 2013 11:37:43 PM UTC-7, Dominic Rodger wrote: > > Currently, when

Re: How to livereload Django templates?

2013-11-15 Thread charettes
Hi Nikolay, You could implement such a feature as a third party app by connecting a receiver to the template_renderedsignal. I suggest you take a look at how django-debug-toolbar tracks which template were

Re: mod_wsgi setup

2013-11-15 Thread Tim Graham
This list is for the discussion of the development Django itself. I see you've already cross-posted to django-users which is the correct list to get help. On Friday, November 15, 2013 4:36:53 AM UTC-5, tin...@gmail.com wrote: > > Hello, > > I am trying to setup a python 2.7 + Django +

mod_wsgi setup

2013-11-15 Thread tino85
Hello, I am trying to setup a python 2.7 + Django + virtualenv + mod_wsgi environment in my centos 6.3 server to run my python application through apache. But I am getting internal error while trying to access the application through apache. The error log shows the following.

Re: How to livereload Django templates?

2013-11-15 Thread Nikolay Georgiev
Hi Florian, after trying to add livereload I came to the conclusion that it should be implemented in Django itself. I managed to add CSS livereload with Cross Browser CSS Injection: http://css-tricks.com/cross-browser-css-injection/, but HTML files cannot be reloaded without knowing how Django