Repository: dynaconf/dynaconf

Issue:
Error: --django option requires an argument[bug]
Running  `dynaconf init -f yaml --django` from Django's project root generates following error:

```
(entropy) C:\Users\hardcase1\PycharmProjects\entropy>dynaconf init -f yaml --django
Error: --django option requires an argument

```
DJANGO_SETTINGS_MODULE  is set

```
import django_manage_shell;
django_manage_shell.run("C:/Users/hardcase1/PycharmProjects/entropy")
PyDev console: starting.
Python 3.9.0 | packaged by conda-forge | (default, Oct 10 2020, 20:35:00) [MSC v.1916 64 bit (AMD64)] on win32
Django 3.1.2
import os 
os.getenv('DJANGO_SETTINGS_MODULE')
'entropy.settings'

```

manage.py locates in project's root:

К```
аталог: C:\Users\hardcase1\PycharmProjects\entropy


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       17.10.2020     12:20                .idea
d-----       17.10.2020     12:22                entropy
d-----       16.10.2020     20:46                staticfiles
d-----       14.10.2020     19:28                templates
d-----       17.10.2020     11:53                uvicorn
d-----       17.10.2020     12:18                __pycache__
-a----       16.10.2020     18:00           2398 .gitignore
-a----       16.10.2020     17:53           1310 environment.yml
-a----       16.10.2020     20:45            283 manage.py
-a----       16.10.2020     17:54             38 notes.txt
-a----       17.10.2020     12:09            192 packages
-a----       16.10.2020     17:32            138 Pipfile
-a----       16.10.2020     17:32            453 Pipfile.lock
-a----       17.10.2020     11:55            940 todo.txt


PS C:\Users\hardcase1\PycharmProjects\entropy>

```


Discussion:
How did you get around #465? I had to manually edit `dynaconf` source inside `venv` to solve it and then your issue is solved like this:
```
dynaconf init -f yaml --django .
```
Note the `.` (dot) symbol in the end, looks like we now have to specify folder where init will put all needed files.

Resolving patch:
diff --git a/dynaconf/cli.py b/dynaconf/cli.py
--- a/dynaconf/cli.py
+++ b/dynaconf/cli.py
@@ -59,13 +59,8 @@ def set_settings(ctx, instance=None):
             from django.conf import settings  # noqa
 
             settings.DYNACONF.configure()
-        except (ImportError, AttributeError):
-            # Backwards compatible with old django extension (pre 2.0.0)
-            import dynaconf.contrib.django_dynaconf  # noqa
-            from django.conf import settings as django_settings  # noqa
-
-            django_settings.configure()
-            settings = django_settings
+        except AttributeError:
+            settings = LazySettings()
 
         if settings is not None:
             click.echo(
@@ -383,11 +378,11 @@ def init(ctx, fileformat, path, env, _vars, _secrets, wg, y, django):
             click.echo("🎠  Now your Django settings are managed by Dynaconf")
         else:
             click.echo("❌  Django settings file not written.")
-
-    click.echo(
-        "🎉 Dynaconf is configured! read more on https://dynaconf.com\n"
-        "   Use `dynaconf -i config.settings list` to see your settings\n"
-    )
+    else:
+        click.echo(
+            "🎉 Dynaconf is configured! read more on https://dynaconf.com\n"
+            "   Use `dynaconf -i config.settings list` to see your settings\n"
+        )
 
 
 @main.command(name="list")
diff --git a/dynaconf/loaders/env_loader.py b/dynaconf/loaders/env_loader.py
--- a/dynaconf/loaders/env_loader.py
+++ b/dynaconf/loaders/env_loader.py
@@ -55,7 +55,7 @@ def load_from_env(
     # Load environment variables in bulk (when matching).
     else:
         # Only known variables should be loaded from environment.
-        ignore_unknown = obj.get('IGNORE_UNKNOWN_ENVVARS_FOR_DYNACONF')
+        ignore_unknown = obj.get("IGNORE_UNKNOWN_ENVVARS_FOR_DYNACONF")
         known_keys = set(obj.store)
 
         trim_len = len(env_)
@@ -64,10 +64,12 @@ def load_from_env(
                 data, tomlfy=True, box_settings=obj
             )
             for key, data in environ.items()
-            if key.startswith(env_) and not (
+            if key.startswith(env_)
+            and not (
                 # Ignore environment variables that haven't been
                 # pre-defined in settings space.
-                ignore_unknown and key[trim_len:] not in known_keys
+                ignore_unknown
+                and key[trim_len:] not in known_keys
             )
         }
         # Update the settings space based on gathered data from environment.
diff --git a/example/dummy_flask_extension/__init__.py b/example/dummy_flask_extension/__init__.py
--- a/example/dummy_flask_extension/__init__.py
+++ b/example/dummy_flask_extension/__init__.py
@@ -1,14 +1,13 @@
 class DummyExtensionType(object):
-
     def __init__(self, app=None):
         self.app = app
         if app is not None:
             self.init_app(app)
 
     def init_app(self, app):
-        if not hasattr(app, 'extensions'):
+        if not hasattr(app, "extensions"):
             app.extensions = {}
-        app.extensions['dummy'] = self
+        app.extensions["dummy"] = self
 
 
 dummy_instance = DummyExtensionType()


Test patch:
diff --git a/tests/test_flask.py b/tests/test_flask.py
--- a/tests/test_flask.py
+++ b/tests/test_flask.py
@@ -20,13 +20,14 @@ def test_dynamic_load_entry_point(settings):
     """Assert that a config based extensions support entry point syntax"""
     app = Flask(__name__)
     app.config["EXTENSIONS"] = [
-        "example.dummy_flask_extension:dummy_instance.init_app"]
+        "example.dummy_flask_extension:dummy_instance.init_app"
+    ]
     FlaskDynaconf(app, dynaconf_instance=settings)
     app.config.load_extensions()
     assert app.config.EXTENSIONS == [
         "example.dummy_flask_extension:dummy_instance.init_app"
     ]
-    assert app.extensions['dummy'].__class__.__name__ == 'DummyExtensionType'
+    assert app.extensions["dummy"].__class__.__name__ == "DummyExtensionType"
 
 
 def test_dynamic_load_exts_list(settings):