Django setting.py error
I have the following code with the following settings. But I always get an error in my settings ... 
MySQL version is 5 and Django the last version.
Python 3.7


    #!/usr/bin/env python
    import os
    import sys
    sys.path.append("/home/test")
    
    
    if __name__ == "__main__":
    	 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "standAlone.myScript")
    	 from django.core.management import execute_from_command_line
    	 execute_from_command_line(sys.argv)

This is my myScript:

    # settings.py
    from django.conf import settings
    
    
    #settings.configure(
        DATABASE_ENGINE    = " ",
        DATABASE_NAME      = " ",
        DATABASE_USER      = " ",
        DATABASE_PASSWORD  = " ",
        DATABASE_HOST      = " ",
        DATABASE_PORT      = " ",
       # INSTALLED_APPS     = ("myApp")
    )
    
    from django.db import models
    from myApp.models import *

And this is my settings.py:

    DATABASE_ENGINE    = 'django.db.backends.mysql'
    DATABASE_NAME      = 'DATABASE_NAME'
    DATABASE_USER      = '****'
    DATABASE_PASSWORD  = '****'
    DATABASE_HOST      = '127.0.0.1'
    DATABASE_PORT      = '3306'

I have the following error:

    Traceback (most recent call last):
      File "manage.py", line 10, in <module>
        execute_from_command_line(sys.argv)
      File "/home/test/django/core/management/__init__.py", line 443, in execute_from_command_line
        utility.execute()
      File "/home/test/django/core/management/__init__.py", line 382, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/home/test/django/core/management/__init__.py", line 252, in fetch_command
        app_name = get_commands()[subcommand]
      File "/home/test/django/core/management/__init__.py", line 101, in get_commands
        apps = settings.INSTALLED_APPS
      File "/home/test/django/utils/functional.py", line 184, in inner
        self._setup()
      File "/home/test/django/conf/__init__.py", line 42, in _setup
        self._wrapped = Settings(settings_module)
      File "/home/test/django/conf/__init__.py", line 93, in __init__
        mod = importlib.import_module(self.SETTINGS_MODULE)
      File "/home/test/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/test/standAlone/myScript.py", line 6
        DATABASE_ENGINE    = "django.db.backends.mysql",
        ^


Django setting.py error
===

I have the following code with the following settings. But I always get an error in my settings ... 
MySQL version is 5 and Django the last version.
Python 3.7


    #!/usr/bin/env python
    import os
    import sys
    sys.path.append("/home/test")
    
    
    if __name__ == "__main__":
    	 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "standAlone.myScript")
    	 from django.core.management import execute_from_command_line
    	 execute_from_command_line(sys.argv)

This is my myScript:

    # settings.py
    from django.conf import settings
    
    
    #settings.configure(
        DATABASE_ENGINE    = " ",
        DATABASE_NAME      = " ",
        DATABASE_USER      = " ",
        DATABASE_PASSWORD  = " ",
        DATABASE_HOST      = " ",
        DATABASE_PORT      = " ",
       # INSTALLED_APPS     = ("myApp")
    )
    
    from django.db import models
    from myApp.models import *

And this is my settings.py:

    DATABASE_ENGINE    = 'django.db.backends.mysql'
    DATABASE_NAME      = 'DATABASE_NAME'
    DATABASE_USER      = '****'
    DATABASE_PASSWORD  = '****'
    DATABASE_HOST      = '127.0.0.1'
    DATABASE_PORT      = '3306'

I have the following error:

    Traceback (most recent call last):
      File "manage.py", line 10, in <module>
        execute_from_command_line(sys.argv)
      File "/home/test/django/core/management/__init__.py", line 443, in execute_from_command_line
        utility.execute()
      File "/home/test/django/core/management/__init__.py", line 382, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/home/test/django/core/management/__init__.py", line 252, in fetch_command
        app_name = get_commands()[subcommand]
      File "/home/test/django/core/management/__init__.py", line 101, in get_commands
        apps = settings.INSTALLED_APPS
      File "/home/test/django/utils/functional.py", line 184, in inner
        self._setup()
      File "/home/test/django/conf/__init__.py", line 42, in _setup
        self._wrapped = Settings(settings_module)
      File "/home/test/django/conf/__init__.py", line 93, in __init__
        mod = importlib.import_module(self.SETTINGS_MODULE)
      File "/home/test/django/utils/importlib.py", line 35, in import_module
        __import__(name)
      File "/home/test/standAlone/myScript.py", line 6
        DATABASE_ENGINE    = "django.db.backends.mysql",
        ^

