return;
}
}
List<IPythonNature> natures = Collections.singletonList((IPythonNature) nature);
PydevConsoleFactory consoleFactory = new PydevConsoleFactory();
PydevConsoleLaunchInfo launchInfo = new PydevIProcessFactory().createLaunch(
nature.getRelatedInterpreterManager(),
nature.getProjectInterpreter(),
nature.getPythonPathNature().getCompleteProjectPythonPath(nature.getProjectInterpreter(),
nature.getRelatedInterpreterManager()), nature, natures);
PydevConsoleInterpreter interpreter = PydevConsoleFactory.createPydevInterpreter(launchInfo, natures);
String importStr = "";//"from " + selectedProject.getName() + " import settings;";
importStr = "import " + settingsModule + " as settings;";
consoleFactory.createConsole(interpreter, "\nfrom django.core import management;" + importStr
+ "management.setup_environ(settings)\n");
} catch (Exception e) {
throw new RuntimeException(e);
}