> I'm tryin to install django on my windows machine, but I got stuck in > the followin line "Consider symlinking to django-admin.py from some > place on your path, such as /usr/local/bin." I'm not too techno- > savvy...can someone point me in the right direction as to what that > means and/or how I go about doing that???
This assumes you're running a *nix-like OS instead of Windows (you can make links in Windows but it's a pain). Executive Cheat-code for the impatient: ======================================= bash$ ln -s /path/to/existing/django-admin.py /some/place/on/path/django-admin.py More detailed explanation: ========================== In most instances, the Django install doesn't drop its "django-admin.py" outside its own subdirectory. This means that to run it, you have to specify its full path bash$ /path/to/django-admin.py startproject foo If, however, it's on your path (the list of places your shell looks to find executables), you can get away with just typing bash$ django-admin.py startproject foo The best geeks are lazy, so that 2nd one appeals after you've typed the full path more than once. Therefore the docs suggest that you create a link from its existing loction to some place on your path. You can show your path with bash$ echo $PATH Because this is likely outside the domain of your OS's stock install, it's recommended you not link into a "system" directory (usually /bin or /usr/bin are controlled by your package manager) but rather to use either a system-wide location like /usr/local/bin or /opt/bin which is designed for add-on programs outside of the stock-OS. This would be for all users on the system. If, however you just want it for yourself, many folks have a ~/bin in their home directory for just this purpose. However, you have to make sure you have that on your path. So for example, in my .bash_profile or .bashrc I might have lines like PATH=$HOME/bin:$PATH export PATH to add ~/bin to my $PATH, and then create a link from the existing django-admin.py into that folder with bash$ ln -s /path/to/django-admin.py ~/bin/django-admin.py Lastly, as one more cheap trick, you don't need to keep the same name, so I tend to drop the ".py" when I do that: bash$ ln -s /path/to/django-admin.py ~/bin/django-admin so I can just type bash$ django-admin startproject foo Hope this helps explain so you can tweak as you need, -tim -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.