[Answered ]-Django admin directory on Debian

1👍

Try:

sudo updatedb
locate django/contrib/admin/media/

1👍

Go into the terminal and try this command…

python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

This should inform you as to your site-packages location.

👤Kieran

0👍

say if you want to see where a package — say PIL — is installed, get to a python shell, type:

>>> import PIL
>>> help(PIL)

The help file looks like:

Help on package PIL:

NAME
    PIL

FILE
    /usr/lib/python2.7/dist-packages/PIL/__init__.py

...

now I know that PIL is in /usr/lib/python2.7/dist-packages/PIL/

alternatively,

>>> print PIL.__file__
/usr/lib/python2.7/dist-packages/PIL/__init__.pyc

Leave a comment