|
|
@ -16,12 +16,23 @@ ADMINS = ( |
|
|
|
|
|
|
|
MANAGERS = ADMINS |
|
|
|
GOOGLE_MAPS_API_KEY = 'ABQIAAAAsn1j-ZGGtRgZ9aMJPCZbRxQ7qtcPomt5R65jYWcqt6293S9jUBRFELNu52BN---sow276q3W0R-Hvg' |
|
|
|
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
|
|
DATABASE_NAME = 'rizk' # Or path to database file if using sqlite3. |
|
|
|
DATABASE_USER = 'root' # Not used with sqlite3. |
|
|
|
DATABASE_PASSWORD = '' # Not used with sqlite3. |
|
|
|
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
|
|
|
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
|
|
|
|
|
|
|
DATABASES = { |
|
|
|
'default': { |
|
|
|
'ENGINE': 'django.contrib.gis.db.backends.postgis', |
|
|
|
'NAME': 'rizk', |
|
|
|
# 'USER': , |
|
|
|
# 'PASSWORD': env('POSTGRES_PASSWORD'), |
|
|
|
# 'HOST': |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
# DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
|
|
# DATABASE_NAME = 'rizk' # Or path to database file if using sqlite3. |
|
|
|
# DATABASE_USER = 'root' # Not used with sqlite3. |
|
|
|
# DATABASE_PASSWORD = '' # Not used with sqlite3. |
|
|
|
# DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
|
|
|
# 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 |
|
|
@ -68,8 +79,8 @@ TEMPLATE_CONTEXT_PROCESSORS = ( |
|
|
|
|
|
|
|
# List of callables that know how to import templates from various sources. |
|
|
|
TEMPLATE_LOADERS = ( |
|
|
|
'django.template.loaders.filesystem.load_template_source', |
|
|
|
'django.template.loaders.app_directories.load_template_source', |
|
|
|
'django.template.loaders.filesystem.Loader', |
|
|
|
'django.template.loaders.app_directories.Loader', |
|
|
|
# 'django.template.loaders.eggs.load_template_source', |
|
|
|
) |
|
|
|
|
|
|
@ -77,7 +88,7 @@ MIDDLEWARE_CLASSES = ( |
|
|
|
'django.middleware.common.CommonMiddleware', |
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
|
|
'debug_toolbar.middleware.DebugToolbarMiddleware', |
|
|
|
# 'debug_toolbar.middleware.DebugToolbarMiddleware', |
|
|
|
) |
|
|
|
|
|
|
|
ROOT_URLCONF = 'urls' |
|
|
@ -97,8 +108,7 @@ INSTALLED_APPS = ( |
|
|
|
'django.contrib.admin', |
|
|
|
'django.contrib.gis', |
|
|
|
'egypt', |
|
|
|
'debug_toolbar', |
|
|
|
'django_extensions', |
|
|
|
# 'django_extensions' |
|
|
|
) |
|
|
|
|
|
|
|
#overwrite default settings with local settings |
|
|
|