Help

2

Switching database in login screen gives Internal server error on server.

Avatar
Parikshit Vaghasiya

AttributeError: 'NoneType' object has no attribute 'cursor'


Avatar
Discard
1 Answer
1
Avatar
Parikshit Vaghasiya
Best Answer

Hello,

for this change in below file : 

addons/web/controllers/main.py on line num : 142.

     # always switch the session to the computed db
if db != request.session.db:
request.session.logout()
+ request.session.db = db
abort_and_redirect(request.httprequest.url)

- request.session.db = db

def module_installed():
# Candidates module the current heuristic is the /static dir


Avatar
Discard