@ -21,8 +21,12 @@ local mappings = {
end,
desc = "load data",
},
["<leader>jt"] = {
function()
django.reset_data()
desc = "reset data",
["<leader>jp"] = {
django.create_package()
@ -313,5 +313,9 @@ function M.load_data()
perform_load_data)
end
function M.reset_data()
local term_num =15
toggleterm.exec("./manage.py resetdata", term_num, 100, ".", "float", "reset_data", false)
return M