where does django install in ubuntu


Question

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

1
32
7/8/2009 1:38:33 AM

Accepted 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)
93
8/13/2009 9:01:21 AM

Its now at

/usr/lib/python2.7/dist-packages/django/....

circa 2012


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon