Results 1 to 5 of 5
I have Django installed and now I need to copy it to Python directory. Where is it? How can I find it?...
- 11-12-2008 #1
Where's the Python directory
I have Django installed and now I need to copy it to Python directory. Where is it? How can I find it?
- 11-13-2008 #2
I figured this one out. It's in /usr/lib. Now the new question is, how can I set the environment variable for Django so I can use its admin interface?
I'm sure it's a general question, how can we set up evrironment variable/path? Help appreciated.
- 11-16-2008 #3
- 11-18-2008 #4
- 11-20-2008 #5
Yes and no.
You should really read the Bash man page. Especially the section titled " INVOCATION ". It depends on how bash / sh is invoked, whether or not the /etc/profile will be parsed as expected. I personally noticed that in some situations my env variables were not set as expected.
To test your theory, put it the line in /etc/profile , then try:
...in several different manners. For example: At a fresh reboot (after login at the VT console, inside of an xterm (or equivalent), and even inside a script:Code:echo $VARIABLE_NAME
..cut & paste the above commands at the prompt to create a "testing.sh" shell script inside your home directory and change its permissions to executable. Try running this script from the console and inside an Xterm too. If it produces just a blank line, then the variable is not set.Code:cat > ~/testing.sh << "EOF" #!/bin/sh echo $CHANGE_THIS_TO_VARIABLE #no equals sign though - because we are testing, not setting. EOF chmod a+x ~/testing.sh
You can also issue :
...at any time to list all the environment variables in your current shell.Code:env


Reply With Quote
