Using import csv functionality with Django
Using import csv functionality with Django
Link to test case:
https://editor.datatables.net/examples/extensions/import.html
Debugger code (debug.datatables.net):
(document).ready(function() {
// Regular editor for the table
editor = new $.fn.dataTable.Editor( {
ajax: "../php/staff.php",
table: "#example",
fields: [ {
label: "First name:",
name: "first_name"
}, {
label: "Last name:",
name: "last_name"
}, {
label: "Position:",
name: "position"
}, {
label: "Office:",
name: "office"
}, {
label: "Start date:",
name: "start_date",
type: "datetime"
}, {
label: "Salary:",
name: "salary"
}
]
} );
Error messages shown:
Description of problem:
We are trying to use Django with a MySQL backend, and the ajax in this example code is providing a Php link as an endpoint to for data and the server side scripting. Is there a way to use django server and data from MySql db to achieve the same functionality?
Thanks!!
Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.
This discussion has been closed.
Answers
This thread should help, it's asking the same thing.
Cheers,
Colin