Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Returns a dictionary with EMAIL_* settings from EMAIL_URL.

        def config(env=DEFAULT_ENV, default=None):
    """Returns a dictionary with EMAIL_* settings from EMAIL_URL."""

    conf = {}

    s = os.environ.get(env, default)

    if s:
        conf = parse(s)

    return conf
        


src/d/j/django12factor-1.0/django12factor/__init__.py   django12factor(Download)
    }
 
    settings.update(dj_email_url.config(default='dummy://'))
 
    settings['ALLOWED_HOSTS'] = os.getenv('ALLOWED_HOSTS', '').split(',')

src/d/j/django12factor-HEAD/django12factor/__init__.py   django12factor(Download)
    }
 
    settings.update(dj_email_url.config(default='dummy://'))
 
    settings['ALLOWED_HOSTS'] = os.getenv('ALLOWED_HOSTS', '').split(',')

src/d/j/dj-email-url-HEAD/test_dj_email_url.py   dj-email-url(Download)
    def test_email_url(self):
        a = dj_email_url.config()
        assert not a
 
        os.environ['EMAIL_URL'] = \
                'smtps://user@domain.com:password@smtp.example.com:587'
 
        url = dj_email_url.config()