Ejemplo n.º 1
0
# Django settings for CMDB project.
from settings_config import dbconfig
mysql = dbconfig()
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE':
        'django.db.backends.mysql',  # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': mysql["name"],  # Or path to database file if using sqlite3.
        # The following settings are not used with sqlite3:
        'USER': mysql["user"],
        'PASSWORD': mysql["pass"],
        'HOST': mysql[
            "host"],  # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': mysql["port"],  # Set to empty string for default.
    }
}

# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []

# Local time zone for this installation. Choices can be found here:
Ejemplo n.º 2
0
# Django settings for CMDB project.
from settings_config import dbconfig
mysql = dbconfig() 
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': mysql["name"],                      # Or path to database file if using sqlite3.
        # The following settings are not used with sqlite3:
        'USER': mysql["user"],
        'PASSWORD': mysql["pass"],
        'HOST': mysql["host"],                      # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
        'PORT': mysql["port"],                      # Set to empty string for default.
    }
}

# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = []

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.