django-configurations/configurations/__init__.py
Nicolas Delaby 8f318991c2 Drop unmaintained version of django and python
- Drop django==1.9 as it reached end of life
- Drop python2.6, python3.3, and bring python3.6
- Bring django-2.0 in the matrix as expected failure until we add its
support
2017-09-30 14:37:38 +02:00

29 lines
631 B
Python

# flake8: noqa
from .base import Configuration
from .decorators import pristinemethod
__version__ = '2.1'
__all__ = ['Configuration', 'pristinemethod']
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()