django oracle數據庫設置

    技术2022-05-19  20

    DATABASES = {     'default': {         #'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.         'ENGINE': 'django.db.backends.oracle', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.         'NAME': 'ora8',                      # Or path to database file if using sqlite3.         'USER': 'delphitest',                      # Not used with sqlite3.         'PASSWORD': 'delphitestpass',                  # Not used with sqlite3.         'HOST': '172.17.8.5',                      # Set to empty string for localhost. Not used with sqlite3.         'PORT': '1521',                      # Set to empty string for default. Not used with sqlite3.     }


    最新回复(0)