我有一个django应用程序,文件树看起来像这样:
我在functions.py中使用了我最常用的方法,我想在excel.py中使用它们(来自app1.functions import method1,method1,method3),但问题出现了。
当我像 private createview(Composite parent) {
Group group = createGroup(parent, "Details");
Button button3 = new Button(group, SWT.PUSH);
button3.setText("demo");
String[] columnNames = {"num","Address","name","Version"};
DefaultTableModel tableModel = new DefaultTableModel(columnNames,0);
Object[] objs = {"1","ff","aa","22" },
{"2","gg","cc","33"};
tableModel.addRow(objs);
JTable table = new JTable(tableModel);
group.pack();
}
一样运行时,它可以运行。但是当我尝试使用python manage.py importfromexcel
运行迁移时,它会导致导入错误:
python manage.py migrate
我的导入有什么问题?如果不是这样,我应该如何导入它?