DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__)) SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) #MEDIA_ROOT = os.path.join(SITE_ROOT, 'assets') DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '*****@*****.**'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': CONF.get('webui-database', 'driver'), # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': CONF.get('webui-database', 'name'), # Or path to database file if using sqlite3. 'USER': CONF.get('webui-database', 'user'), # Not used with sqlite3. 'PASSWORD': CONF.get('webui-database', 'password'), # Not used with sqlite3. 'HOST': CONF.get('webui-database', 'host'), # Set to empty string for localhost. Not used with sqlite3. 'PORT': CONF.get('webui-database', 'port'), # Set to empty string for default. Not used with sqlite3. #Options for PostgreSQL database backend #'OPTIONS': { # 'autocommit': True, #} } } # 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.
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) # MEDIA_ROOT = os.path.join(SITE_ROOT, 'assets') DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '*****@*****.**'), ) MANAGERS = ADMINS DATABASES = { "default": { "ENGINE": CONF.get( "webui-database", "driver" ), # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. "NAME": CONF.get("webui-database", "name"), # Or path to database file if using sqlite3. "USER": CONF.get("webui-database", "user"), # Not used with sqlite3. "PASSWORD": CONF.get("webui-database", "password"), # Not used with sqlite3. "HOST": CONF.get("webui-database", "host"), # Set to empty string for localhost. Not used with sqlite3. "PORT": CONF.get("webui-database", "port"), # Set to empty string for default. Not used with sqlite3. } } # 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. # On Unix systems, a value of None will cause Django to use the same # timezone as the operating system. # If running in a Windows environment this must be set to the same as your
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) #MEDIA_ROOT = os.path.join(SITE_ROOT, 'assets') DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '*****@*****.**'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': CONF.get( 'webui-database', 'driver' ), # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': CONF.get('webui-database', 'name'), # Or path to database file if using sqlite3. 'USER': CONF.get('webui-database', 'user'), # Not used with sqlite3. 'PASSWORD': CONF.get('webui-database', 'password'), # Not used with sqlite3. 'HOST': CONF.get( 'webui-database', 'host' ), # Set to empty string for localhost. Not used with sqlite3. 'PORT': CONF.get( 'webui-database', 'port'), # Set to empty string for default. Not used with sqlite3. #Options for PostgreSQL database backend #'OPTIONS': { # 'autocommit': True,
SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) #MEDIA_ROOT = os.path.join(SITE_ROOT, 'assets') DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '*****@*****.**'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': CONF.get( 'webui-database', 'driver' ), # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': CONF.get('webui-database', 'name'), # Or path to database file if using sqlite3. 'USER': CONF.get('webui-database', 'user'), # Not used with sqlite3. 'PASSWORD': CONF.get('webui-database', 'password'), # Not used with sqlite3. 'HOST': CONF.get( 'webui-database', 'host' ), # Set to empty string for localhost. Not used with sqlite3. 'PORT': CONF.get( 'webui-database', 'port'), # Set to empty string for default. Not used with sqlite3. } }