3

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

anita.kcx
  • 933
  • 2
  • 12
  • 18

3 Answers3

4

just type

django-admin startproject mysite
Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Zeel Shah
  • 462
  • 6
  • 15
1

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

pyriku
  • 1,251
  • 7
  • 17
  • I went removed Django and installed pip and virtualenv. I tried django-admin.py startproject mysite - but the problem still remains. – anita.kcx Aug 03 '12 at 08:26
  • How do I make use of what I just did? – anita.kcx Aug 03 '12 at 08:26
  • You need to create virtualenv like "virtualenv --no-site-packages /path/to/your/env" and then activate it with "source /path/to/your/env/bin/activate". That will change temporary your path, and you can check you're using it because the prompt also changed. Then, try to install Django again (pip install django) and check if that works. – pyriku Aug 03 '12 at 10:59
1

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

justice
  • 306
  • 2
  • 12