def manual_setup(conf: dict):
    """
    If configuration is meant to happen from scripts &c
    conf is supposed to be dictionary to override defaults
    """
    from django.conf import settings
    if conf.get('ROOT_URLCONF') and not isinstance(conf.get('ROOT_URLCONF'),
        tuple):
        conf['ROOT_URLCONF'] = tuple(conf.get('ROOT_URLCONF'))
    settings.configure(**conf)
    import django
    django.setup()
