I’m a bit confused with what is happening to run my django apps. When I use the command python manage.py runserver I don’t get the appropriate response from the server. However, when I use python2.6 manage.py runserver the server actually runs.
Can someone help me with this confusion and also suggest to me how I can simplify this problem? Ideally I don’t want different versions of python and only want to be able to type python manage.py runserver
Yes. It is fairly common. You can find out the location of an executable with
which, and resolve symlinks withls.On Debian and some other systems, you may need to resolve multiple symlinks.
If you want to only type
pythonand get the version you want, make an alias. Add a line to your.bashrcfile (or wherever you keep such lines):Note that this will not affect scripts: if you run “python” in a script, it will get the old version, not an alias. Aliases are only for interactive use.