django-configurations/configurations/__init__.py
2016-06-13 12:26:52 +02:00

29 lines
657 B
Python

# flake8: noqa
from .base import Settings, Configuration
from .decorators import pristinemethod
__version__ = '2.0.dev'
__all__ = ['Configuration', 'pristinemethod', 'Settings']
def _setup():
from . import importer
importer.install()
import django
django.setup()
def load_ipython_extension(ipython):
"""
The `ipython` argument is the currently active `InteractiveShell`
instance, which can be used in any way. This allows you to register
new magics or aliases, for example.
"""
_setup()
def setup(app=None):
"""Function used to initialize configurations similar to :func:`.django.setup`."""
_setup()