#
import os
+import sys
+
from sqlalchemy.engine.url import make_url
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
'sdnctrlhandler',
'userhandler',
'rolehandler',
- 'netslicehandler'
+ 'netslicehandler',
+ 'k8sclusterhandler',
+ 'k8srepohandler'
]
os.path.join(BASE_DIR, 'sdnctrlhandler', 'template'),
os.path.join(BASE_DIR, 'userhandler', 'templates'),
os.path.join(BASE_DIR, 'netslicehandler', 'template'),
+ os.path.join(BASE_DIR, 'k8sclusterhandler', 'template'),
+ os.path.join(BASE_DIR, 'k8srepohandler', 'template'),
],
'APP_DIRS': True,
'OPTIONS': {
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale'),
)
+
+LOGGING = {
+ 'version': 1,
+ 'disable_existing_loggers': False,
+ 'formatters': {
+ 'verbose': {
+ 'format': '[django] %(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
+ }
+ },
+ 'handlers': {
+ 'console': {
+ 'level': 'DEBUG',
+ 'class': 'logging.StreamHandler',
+ 'stream': sys.stdout,
+ 'formatter': 'verbose'
+ },
+ },
+ 'loggers': {
+ 'django': {
+ 'handlers': ['console'],
+ 'level': 'DEBUG',
+ 'propagate': True,
+ },
+ },
+}
\ No newline at end of file