[Pydev-users] [pydev - Users] Set environment variable in PyDev Console?
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2008-07-01 16:51:04
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=5066086 By: amallavarapu Hi - I'm trying to get the PyDev Console (accessible via the Ppen Console drop-down button) to start with default environment variables. Specifically, I need DJANGO_SETTINGS_MODULE to be set to myproject.settings. I was able to set up a Run configuration for python.exe with Arguments = "-i", DJANGO_SETTINGS_MODULE=myproject.settings (via the Environment tab), but this console doesn't have code-completion like the built-in PyDev console. I can manually set os.environ['DJANGO_SETTINGS_MODULE']='myproject.settings' each time I start a PyDev console, but I figured there must be an easier way. Any suggestions? Alternatively - is there a way to get a run-configuration with python.exe to support code completion? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |