Using import csv functionality with Django

Using import csv functionality with Django

yashdeshyashdesh Posts: 1Questions: 1Answers: 0
edited September 16 in Editor

Link to test case:
Debugger code (

(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?


Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.


  • colincolin Posts: 12,985Questions: 0Answers: 2,211

    This thread should help, it's asking the same thing.



Sign In or Register to comment.