News for hackers. Stuff that matters.
Re:Django-bcrypt by stevelosh on Thursday February 03, 2011 @05:55PM (#2177331)
Actually the code was already written -- see the bottom of the README.

It took about 30-40 minutes to:

* Add the BCRYPT_ROUNDS setting.

* Remember how to allow for an optional setting (`if foo in settings` and `settings.get(foo, default)` don't work).

* Add the setup.py file.

* Write a README.

* Test with a real Django site to make sure nothing was broken.

* Create and push to repos on BitBucket and GitHub.

Re:Django-bcrypt by Jasber on Thursday February 03, 2011 @06:22PM (#2177460)
> Remember how to allow for an optional setting (`if foo in settings` and `settings.get(foo, default)` don't work).

Instead of:

    settings.get(foo, default)  
Try:

    getattr(settings, foo, default)
This looks useful. Thanks.
Re:Django-bcrypt by stevelosh on Thursday February 03, 2011 @06:47PM (#2177566)
Good idea, pushed!