thanks, here is the server error response Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/handlers/base.py", line 179, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/utils/decorators.py", line 43, in _wrapper return bound_method(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/blackmaster/Documents/programacion/proyectos_django/localsys/backoffice/views/sold.py", line 49, in dispatch return super().dispatch(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/contrib/auth/mixins.py", line 52, in dispatch return super().dispatch(request, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/views/generic/base.py", line 98, in dispatch return handler(request, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/utils/decorators.py", line 43, in _wrapper return bound_method(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/Users/blackmaster/Documents/programacion/proyectos_django/localsys/backoffice/views/sold.py", line 72, in post return JsonResponse(data, safe=False) NameError: name 'JsonResponse' is not defined [27/Mar/2021 20:39:37] *"POST /dashboard/backoffice/new_sold HTTP/1.1" 500 96481* El sáb, 27 mar 2021 a las 18:48, Kasper Laudrup (<laud...@stacktrace.dk>) escribió: > On 27/03/2021 15.13, frank galan wrote: > > Im receiving a 500 server error, when I trying to obtain data wiith > > ajax from my model. > > You should look at the server logs or the output from the console. That > should hopefully provide some details on the reason behind the "Internal > Server Error". > > Kind regards, > > Kasper Laudrup > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/b3540a30-7ece-f675-c3eb-710e74065686%40stacktrace.dk > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPedvKX-fEz5S9QJHLvMfKLuv-HuHi1ztnd8%3Dz_y9_cJ3LgPAQ%40mail.gmail.com.