hi igot this error trying to debug the error
(myvirtualenv) 10:08 ~/greatkart-django-main (master)$ python -i /var/www/www_my_domain_com_wsgi.py
and in error log i got this :
Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-04-26 22:20:27,653: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-04-26 22:21:08,113: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-04-26 22:21:10,836: Not Found: /favicon.ico
2023-05-10 14:14:10,586: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-05-10 14:14:27,231: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-05-10 14:14:27,719: Not Found: /favicon.ico
2023-05-10 14:14:30,089: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-05-10 14:14:41,748: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
2023-05-10 14:14:45,346: Internal Server Error: /
Traceback (most recent call last):
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/faramarz1/greatkart-django-main/greatkart/views.py", line 12, in home
return render(request, 'home.html', context)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "/home/faramarz1/.virtualenvs/ven/lib/python3.9/site-packages/django/template/loader.py", line 19, in get_template
raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: home.html
and this at before i try debug from above
super().__init__(*args, **kwargs2)
django.db.utils.OperationalError: (1045, "Access denied for user 'faramarz1$default'@'10.0.0.198' (using password: YES)")
^C
[edit by admin: formatting]