where does django install in ubuntu

Posted on Jan 19, 2023

Question

I am looking for the init.py file for django. I tried whereis and find, but I get a lot of dirs.

Answer

you can just print it out.

>>> import django
>>> print django.__file__
/var/lib/python-support/python2.5/django/__init__.pyc
>>>

or:

import inspect
import django
print inspect.getabsfile(django)