Ajax Error
Ajax Error
goktuginal41@gmail.com
Posts: 57Questions: 22Answers: 0
Hello everyone,
The app I implemented on Django-Python framework is working pretty well at localhost. However, when I uploaded it to apache server, I get this error:
**DataTables warning: table id=records - Ajax error. For more information about this error, please see http://datatables.net/tn/7
**
Do you have any idea how to fix it? Thanks in advance.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'myproject',
'USER': 'myprojectuser',
'PASSWORD': '12345',
'HOST': '',
'PORT': '',
}
}
error.log
[Mon Sep 18 15:15:25.471672 2023] [mpm_prefork:notice] [pid 2384263] AH00169: caught SIGTERM, shutting down
Exception ignored in: <function Local.__del__ at 0x7f581fdacca0>
Traceback (most recent call last):
File "/home/usuario/Datatables/venv/lib/python3.8/site-packages/asgiref/local.py", line 94, in __del__
NameError: name 'TypeError' is not defined
Exception ignored in: <function Local.__del__ at 0x7f581fdacca0>
Traceback (most recent call last):
File "/home/usuario/Datatables/venv/lib/python3.8/site-packages/asgiref/local.py", line 94, in __del__
NameError: name 'TypeError' is not defined
[Mon Sep 18 15:15:25.595115 2023] [mpm_prefork:notice] [pid 2384428] AH00163: Apache/2.4.41 (Ubuntu) mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
[Mon Sep 18 15:15:25.595167 2023] [core:notice] [pid 2384428] AH00094: Command line: '/usr/sbin/apache2'
Answers
That's not a Datatables error but an error in your Django Python environment. Stack Overflow or other Django related forums will be a better resource to troubleshoot your Django environment. Something like this SO thread may help.
Kevin