Sunday, August 1, 2010

Re: django-admin.py not working

ginost7 wrote:

> Im using ubuntu
>
> I managed to get through the poll project working on the django tut.
> then tried another project
>
> At the prompt i get
>
> gino@gino-laptop:~/djangoDEV$ django-admin
> The program 'django-admin' is currently not installed. You can
> install it by typing:
> sudo apt-get install python-django
>
> what is the matter?
>
> I verified that django is installed:
>
> gino@gino-laptop:~/djangoDEV$ python
> Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
> [GCC 4.4.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import django
>>>>
>

Hello Gino,

On my ubuntu, django-admin is installed in /usr/bin:

kev@hera:~$ locate django-admin
/usr/bin/django-admin
/usr/lib/python-django/bin/django-admin.py
/usr/lib/python-django/bin/django-admin.pyc
/usr/share/doc/python-django-doc/html/ref/django-admin.html
/usr/share/man/man1/django-admin.1.gz
kev@hera:~$ echo $PATH
/home/kev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

So you might want to check if django-admin exists in a location that is
not on your PATH.

Cheers,

Kev

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment