Skip to content

Comment on Django-bcryptparent

Comments

> 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.

Good idea, pushed!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.