ALLOWED_HOSTS = []
-AUTH_USER_MODEL = "sf_user.CustomUser"
+AUTH_USER_MODEL = "authosm.OsmUser"
-SITE_NAME = "OSM Light Weight"
-SHORT_SITE_NAME = "OSM-LW-UI"
+SITE_NAME = "Open Source MANO"
+SHORT_SITE_NAME = "OSM"
LOGIN_URL = '/auth/'
LOGOUT_URL = '/auth/'
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.staticfiles',
- 'sf_user',
+ 'django.contrib.sessions',
+ 'authosm',
'projecthandler',
'vimhandler',
- 'instancehandler'
+ 'instancehandler',
+ 'sdnctrlhandler',
+
]
MIDDLEWARE_CLASSES = [
]
-SESSION_ENGINE='sf_user.sessions'
+SESSION_ENGINE ='django.contrib.sessions.backends.db'
SESSION_COOKIE_AGE = 3500 #25 min
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_SAVE_EVERY_REQUEST = True
os.path.join(BASE_DIR, 'projecthandler', 'template', 'project'),
os.path.join(BASE_DIR, 'vimhandler', 'template'),
os.path.join(BASE_DIR, 'instancehandler', 'template'),
+ os.path.join(BASE_DIR, 'sdnctrlhandler', 'template'),
],
'APP_DIRS': True,
'OPTIONS': {
],
'libraries':{
'get': 'sf_t3d.templatetags.get',
-
+ 'date_tag': 'sf_t3d.templatetags.datetag',
}
},
},
}
}
+AUTHENTICATION_BACKENDS = ['authosm.backend.OsmBackend']
+
# Password validation
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators