skolo-online / invoice3

Final Instalment in the Invoice App, the complete code.
55 stars 39 forks source link

srikanth #1

Open pvssrikanth opened 3 years ago

pvssrikanth commented 3 years ago

Dear Sir/Madam, I am getting issue while creating invoice

1/Sep/2021 12:02:54] "GET /invoice/clients HTTP/1.1" 200 7579 [01/Sep/2021 12:02:57] "GET /invoice/invoices HTTP/1.1" 200 5677 [01/Sep/2021 12:03:00] "GET /invoice/invoices/create HTTP/1.1" 302 0 [01/Sep/2021 12:03:00] "GET /invoice/invoices/create-build/inv-31d7-1348f6d864dd HTTP/1.1" 200 11345 [01/Sep/2021 12:03:22] "POST /invoice/invoices/create-build/inv-31d7-1348f6d864dd HTTP/1.1" 302 0 [01/Sep/2021 12:03:22] "GET /invoice/invoices/create-build/inv-31d7-1348f6d864dd HTTP/1.1" 200 11475 Internal Server Error: /invoice/invoices/view-pdf/inv-31d7-1348f6d864dd Traceback (most recent call last): File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, callback_kwargs) File "/home/iibadmin/srik/invoice3/invoice/views.py", line 228, in viewPDFInvoice p_settings = Settings.objects.get(clientName='Skolo Online Learning') File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, *kwargs) File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/db/models/query.py", line 437, in get self.model._meta.object_name invoice.models.Settings.DoesNotExist: Settings matching query does not exist. [01/Sep/2021 12:03:30] "GET /invoice/invoices/view-pdf/inv-31d7-1348f6d864dd HTTP/1.1" 500 70266 [01/Sep/2021 12:03:32] "GET /invoice/invoices/create-build/inv-31d7-1348f6d864dd HTTP/1.1" 200 11353 Internal Server Error: /invoice/invoices/view-document/inv-31d7-1348f6d864dd Traceback (most recent call last): File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, callback_args, callback_kwargs) File "/home/iibadmin/srik/invoice3/invoice/views.py", line 265, in viewDocumentInvoice p_settings = Settings.objects.get(clientName='Skolo Online Learning') File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, kwargs) File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/db/models/query.py", line 437, in get self.model._meta.object_name invoice.models.Settings.DoesNotExist: Settings matching query does not exist. [01/Sep/2021 12:03:33] "GET /invoice/invoices/view-document/inv-31d7-1348f6d864dd HTTP/1.1" 500 70352 [01/Sep/2021 12:04:39] "GET /invoice/invoices HTTP/1.1" 200 6152 [01/Sep/2021 12:04:42] "GET /invoice/invoices/create-build/inv-31d7-1348f6d864dd HTTP/1.1" 200 11353 [01/Sep/2021 12:04:47] "GET /invoice/invoices HTTP/1.1" 200 6152 [01/Sep/2021 12:04:54] "GET /invoice/invoices/create-build/inv-31d7-1348f6d864dd HTTP/1.1" 200 11353 Internal Server Error: /invoice/invoices/email-document/inv-31d7-1348f6d864dd Traceback (most recent call last): File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, *callback_kwargs) File "/home/iibadmin/srik/invoice3/invoice/views.py", line 335, in emailDocumentInvoice p_settings = Settings.objects.get(clientName='Skolo Online Learning') File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(args, kwargs) File "/home/iibadmin/srik/envtest/lib/python3.6/site-packages/django/db/models/query.py", line 437, in get self.model._meta.object_name invoice.models.Settings.DoesNotExist: Settings matching query does not exist. [01/Sep/2021 12:04:57] "GET /invoice/invoices/email-document/inv-31d7-1348f6d864dd HTTP/1.1" 500 70366

PLEASE GUIDE HOW TO FIX THIS ISSUE