Where is everything on ubuntu 10.10

12 views
Skip to first unread message

sheeptick

unread,
Nov 18, 2010, 9:10:41 AM11/18/10
to Django users
Hi all, I'm fairly new to Linux, but learned some python on windows.
I want to work through Ayman Hourieh's book on django.
I'm having trouble finding stuff in order to set PATH and PYTHONPATH
variables.

I installed ubuntu 10.10, and used apt-get to install python2.6 and
django.

I can open a shell and run python, and then import django.
I notice that: print django.__path__ gives /usr/lib/pymodules/
python2.6/django

I can't run: django-admin.py startproject some_project

Using which and locate (after updatedb) I found:
/usr/bin/python2.6
/usr/local/lib/python2.6/site-packages
/usr/lib/python-django/bin/django-admin.py

The site-packages directory is empty, so where did django go?
I see that /usr/lib/pymodules/python2.6/django is full of stuff.

What do I need to put in my PATH or PYTHONPATH?

With thanks, Charlie

Robbington

unread,
Nov 18, 2010, 9:34:57 AM11/18/10
to Django users
Hi Charlie,

By "I can't run: django-admin.py startproject some_project" do you
mean that you get an error message like bash: django-admin.py: command
not found?

If so this post might be helpful.
http://groups.google.com/group/django-users/browse_thread/thread/52183f8deb34fea0?hl=en

If its something else, can you explain in more detail the problem you
are having.
My guess is that you need to install it properly.

Rob




sheeptick

unread,
Nov 18, 2010, 11:02:02 AM11/18/10
to Django users
Thank you for your reply. Yes, I was getting: django-admin.py: command
not found.
I've taken your advice and uninstalled django via aptitude, then
installed the version that matches my book
as a tar.gz
django-admin.py now works, so I'm on my way. I'd still like to know
where Django went, though!
It is not in site-packages, which is completely empty.
Charlie

Kenneth Gonsalves

unread,
Nov 18, 2010, 9:08:14 PM11/18/10
to django...@googlegroups.com
On Thu, 2010-11-18 at 06:10 -0800, sheeptick wrote:
> The site-packages directory is empty, so where did django go?

ubuntu guys have something called dist-packages
--
regards
Kenneth Gonsalves

Sam Walters

unread,
Nov 19, 2010, 5:26:31 AM11/19/10
to django...@googlegroups.com
Read up on how linux programs work the file system becomes intuitive.

Also try this:
python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()"

cheers

sam_w

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

Reply all
Reply to author
Forward
0 new messages