more pep
This commit is contained in:
@@ -14,15 +14,13 @@ import sys
|
||||
|
||||
try:
|
||||
use_sqlite = CFG['use_sqlite']
|
||||
except KeyError: # pragma: no cover
|
||||
except KeyError: # pragma: no cover
|
||||
use_sqlite = False
|
||||
|
||||
for element in sys.argv:
|
||||
if 'test' in element:
|
||||
TESTING = True
|
||||
|
||||
|
||||
|
||||
if TESTING or use_sqlite:
|
||||
DATABASES = {
|
||||
'default': {
|
||||
@@ -31,7 +29,8 @@ if TESTING or use_sqlite:
|
||||
'HOST': 'localhost',
|
||||
'USER': '',
|
||||
'PASSWORD': 'roeidata',
|
||||
'PORT': '3306', },
|
||||
'PORT': '3306',
|
||||
},
|
||||
# 'TEST': {
|
||||
# 'CHARSET': 'utf8',
|
||||
# 'COLLATION': 'utf8_general_ci',
|
||||
@@ -42,7 +41,7 @@ if TESTING or use_sqlite:
|
||||
# 'NAME': 'rowsanda_107501',
|
||||
# 'USER': 'rowsanda_107501',
|
||||
|
||||
# }
|
||||
# }
|
||||
}
|
||||
|
||||
|
||||
@@ -63,10 +62,10 @@ DEBUG = True
|
||||
|
||||
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
|
||||
|
||||
ALLOWED_HOSTS = ['localhost','127.0.0.1','dunav.ngrok.io']
|
||||
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'dunav.ngrok.io']
|
||||
|
||||
# INSTALLED_APPS += ['debug_toolbar',]
|
||||
#INSTALLED_APPS += ["sslserver"]
|
||||
# INSTALLED_APPS += ["sslserver"]
|
||||
|
||||
# MIDDLEWARE_CLASSES += ['debug_toolbar.middleware.DebugToolbarMiddleware',]
|
||||
|
||||
@@ -74,18 +73,20 @@ CACHES = {
|
||||
'default': {
|
||||
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||
'LOCATION': os.path.join(BASE_DIR, 'django_cache'),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Application definition
|
||||
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = BASE_DIR
|
||||
#STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
# STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
|
||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'),
|
||||
os.path.join(BASE_DIR, 'static/plots'),]
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
os.path.join(BASE_DIR, 'static/plots'),
|
||||
]
|
||||
|
||||
|
||||
INTERNAL_IPS = ['127.0.0.1']
|
||||
@@ -99,10 +100,10 @@ SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
|
||||
|
||||
SITE_URL = "http://localhost:8000"
|
||||
|
||||
#EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
# EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
|
||||
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
|
||||
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
# EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
|
||||
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
|
||||
|
||||
EMAIL_BACKEND = 'django_ses.SESBackend'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user