3
votes

I have django-admin.py in usr/local/bin and I have tried all the help given on the web to make a symbolic link but it still says django-admin.py: command not found.

I am trying to start of my first project in django :- django-admin.py startproject mysite.

No matter what I do I just keep on getting django-admin.py: command not found.

I am using ubuntu 11.10.

Thanks

3
What does your PATH look like? Try typing echo $PATH at the prompt. - Peter
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/bin:/usr/local/bin:/usr/local/bin - anita.kcx
And you're sure that django-admin.py is, in fact, in /usr/local/bin? What does which django-admin.py return? - Peter
Can you check if the script is executable? - fundamol
it returns nothing.the prompt appears again. I tried opening django-admin.py but it wont. it says - The Link "django-admin.py" is Broken. Move it to Trash? - anita.kcx

3 Answers

4
votes

just type

django-admin startproject mysite
1
votes

I would recommend to remove it and install Django again.

Or use virtualenv http://www.mahdiyusuf.com/post/5282169518/beginners-guide-easy-install-pip-and-virtualenv-1

1
votes

i have the same Problem. the django-admin.py for me was in this Path ~/.local/bin. this because i run pip instal --user django