Metadata-Version: 1.1
Name: dj-email-url
Version: 0.0.2
Summary: Use an URL to configure email backend settings in your Django Application.
Home-page: https://github.com/migonzalvar/dj-email-url
Author: Miguel Gonzalez
Author-email: migonzalvar@gmail.com
License: BSD
Description: dj-email-url
        ~~~~~~~~~~~~
        
        This utility is based on dj-database-url by Kenneth Reitz.
        
        It allows to utilize the
        `12factor <http://www.12factor.net/backing-services>`_ inspired
        environments variable to configure the email backend in a Django application.
        
        Usage
        -----
        
        Import the package in ``settings.py``:
        
        .. code:: python
        
            import dj_email_url
        
        
        Fetch your email configuration values. The default option is fetch them from
        ``EMAIL_URL`` environment variable:
        
        .. code:: python
        
            email_config = dj_email_url.config()
        
        Other option is parse an arbitrary email URL:
        
        .. code:: python
        
            email_config = dj_email_url.parse('smtp://...')
        
        
        Finally, it is **necessary** to assign values to settings:
        
        .. code:: python
        
            EMAIL_FILE_PATH = email_config['EMAIL_FILE_PATH']
            EMAIL_HOST_USER = email_config['EMAIL_HOST_USER']
            EMAIL_HOST_PASSWORD = email_config['EMAIL_HOST_PASSWORD']
            EMAIL_HOST = email_config['EMAIL_HOST']
            EMAIL_PORT = email_config['EMAIL_PORT']
            EMAIL_BACKEND = email_config['EMAIL_BACKEND']
            EMAIL_USE_TLS = email_config['EMAIL_USE_TLS']
        
        Alternatively, it is possible to use this less explicit shortcut:
        
        .. code:: python
        
            vars().update(email_config)
        
        Supported backends
        ------------------
        
        Currently, it supports:
        
        - SMTP backend (smtp and smtps),
        
        - console backend (console),
        
        - file backend (file),
        
        - in-memory backend (memory),
        
        - and dummy backend (dummy).
        
        The scheme ``smtps`` indicates to use TLS connections, that is to set
        ``EMAIL_USE_TLS`` to ``True``.
        
        The file backend is the only one which needs a path. The url path is store
        in ``EMAIL_FILE_PATH`` key.
        
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
