NoReverseMatch at /expenditure/expenses/3/approve/ Reverse for 'download_expense_attachment' not found. 'download_expense_attachment' is not a valid view function or pattern name. Request Method: GET Request URL: http://system.optinet.co.ke/expenditure/expenses/3/approve/ Django Version: 5.0.2 Exception Type: NoReverseMatch Exception Value: Reverse for 'download_expense_attachment' not found. 'download_expense_attachment' is not a valid view function or pattern name. Exception Location: /var/www/html/optinet_system/venv/lib/python3.10/site-packages/django/urls/resolvers.py, line 851, in _reverse_with_prefix Raised during: expenditure.views.approve_expense Python Executable: /var/www/html/optinet_system/venv/bin/python Python Version: 3.10.12 Python Path: ['/var/www/html/optinet_system', '/var/www/html/optinet_system', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/var/www/html/optinet_system/venv/lib/python3.10/site-packages'] Server time: Thu, 14 Aug 2025 17:12:33 +0300 Error during template rendering In template /var/www/html/optinet_system/templates/expenditure/approve_expense.html, error at line 173 Reverse for 'download_expense_attachment' not found. 'download_expense_attachment' is not a valid view function or pattern name. 163