47 questions
0 votes
1 answer
336 views
How to show dataTable.Buttons in django app
I utilized dataTable.view to show particular data in my Django app and I'd like to show buttons such as csv and excel. I add buttons in options but when I want to construct them (according to the ...
1 vote
1 answer
33 views
Pass a filtered field to views.py for further operation
I'm pretty new to Django working in a small project. I need to have the logged in user to be able to see the total of taxes. In the user model is every users info, including each of these taxes, I ...
0 votes
0 answers
54 views
Search custom form with post request datatable not working
Hello everyone can i search with post request in datatables? backend -> django frontend -> html/css jquery In backed django I'm using the django_serverside_datatable library for populating data....
1 vote
1 answer
1k views
Error while changing database engine to PostgreSQL
I got this error after changing the engine, the database is connected however it figured out my id field is a bigint, yet I specifically set it as a UUID field. class Cart(models.Model): id = models....
1 vote
1 answer
853 views
Retrieving data from Django HTML form and passing it to a MySQL database
I have a database with multiple user names and phone numbers attached to each user. On the Django template that I created the user is presented with a list of names, and the user can click on a name, ...
0 votes
1 answer
1k views
Django Datatables View filter/search
Using django-datatable-view at https://github.com/pivotal-energy-solutions/django-datatable-view for a class based DataTable. It is all working and loading but i have the issue with searching data. I ...
1 vote
1 answer
545 views
Add row Id in Django data table
I am using django datatable the data that come from server has the following format: [ ['id_value','data col1','data col2',...] . . .] I am try to make id to every row as follow: 'rowId': 1,...
0 votes
1 answer
1k views
Django Datatables taking too long to load
I am trying to load 25600 rows into datatables but it's taking around 10 seconds. The request is via an ajax API call. views.py @api_view() def get_all_data(request): get_all_data_ = Data.objects....