[GH-ISSUE #1885] [1.15] Error 500 after logging "AttributeError at /dashboard/" #1475

Closed
opened 2026-02-27 11:17:18 +03:00 by kerem · 1 comment
Owner

Originally created by @mirtouf on GitHub (May 7, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1885

Impacted versions

  • Modoboa: 1.15
  • installer used: No
  • Webserver: Nginx

Steps to reproduce

Install modoboa 1.15 and its extensions manually. Login page works fine and then while logged, error 500 arises.

Current behavior

Error 500

Expected behavior

Page loading normally

Output (truncated trace)

AttributeError at /dashboard/

'Settings' object has no attribute 'DISABLE_DASHBOARD_EXTERNAL_QUERIES'

Request Method: 	GET
Request URL: 	https://mail-admin.mirtouf.fr/dashboard/
Django Version: 	2.2.12
Exception Type: 	AttributeError
Exception Value: 	

'Settings' object has no attribute 'DISABLE_DASHBOARD_EXTERNAL_QUERIES'

Exception Location: 	/home/modoboa/env/lib/python3.7/site-packages/django/conf/__init__.py in __getattr__, line 80
Python Executable: 	/usr/bin/uwsgi-core
Python Version: 	3.7.3
Python Path: 	

['.',
 '',
 '/usr/lib/python37.zip',
 '/usr/lib/python3.7',
 '/usr/lib/python3.7/lib-dynload',
 '/home/modoboa/env/lib/python3.7/site-packages']

Server time: 	Thu, 7 May 2020 20:44:17 +0000

It seems to be related to commit e2492a08b0

Does the configuration of settings.py need updating as other pages of modoboa are loading correctly ?

Originally created by @mirtouf on GitHub (May 7, 2020). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1885 # Impacted versions * Modoboa: 1.15 * installer used: No * Webserver: Nginx # Steps to reproduce Install modoboa 1.15 and its extensions manually. Login page works fine and then while logged, error 500 arises. # Current behavior Error 500 # Expected behavior Page loading normally # Output (truncated trace) ``` AttributeError at /dashboard/ 'Settings' object has no attribute 'DISABLE_DASHBOARD_EXTERNAL_QUERIES' Request Method: GET Request URL: https://mail-admin.mirtouf.fr/dashboard/ Django Version: 2.2.12 Exception Type: AttributeError Exception Value: 'Settings' object has no attribute 'DISABLE_DASHBOARD_EXTERNAL_QUERIES' Exception Location: /home/modoboa/env/lib/python3.7/site-packages/django/conf/__init__.py in __getattr__, line 80 Python Executable: /usr/bin/uwsgi-core Python Version: 3.7.3 Python Path: ['.', '', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/modoboa/env/lib/python3.7/site-packages'] Server time: Thu, 7 May 2020 20:44:17 +0000 ``` It seems to be related to commit e2492a08b0a7749fbebc3f161af17df20142d028 Does the configuration of settings.py need updating as other pages of modoboa are loading correctly ?
kerem closed this issue 2026-02-27 11:17:18 +03:00
Author
Owner

@mirtouf commented on GitHub (May 7, 2020):

OK, readthedocs has been updated (with a formatting typo):

DISABLE_DASHBOARD_EXTERNAL_QUERIES = False

<!-- gh-comment-id:625498837 --> @mirtouf commented on GitHub (May 7, 2020): OK, readthedocs has been updated (with a formatting typo): DISABLE_DASHBOARD_EXTERNAL_QUERIES = False
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1475
No description provided.