Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is my Django installation?

I use Django but I need to find the default templates and applications.

I don't know where it's installed.

How can I find that?

like image 201
Pierre de LESPINAY Avatar asked Aug 12 '11 08:08

Pierre de LESPINAY


People also ask

How do you check if I have Django installed?

Simply type python -m django --version or type pip freeze to see all the versions of installed modules including Django.


2 Answers

in the CLI you can do this:

>>> import django >>> django <module 'django' from '/usr/local/lib/python2.6/dist-packages/django/__init__.pyc'> 
like image 114
Uku Loskit Avatar answered Sep 25 '22 10:09

Uku Loskit


$ python >>> import django >>> django.__file__ '/usr/local/lib/python2.7/site-packages/django/__init__.pyc' 
like image 36
Pierre de LESPINAY Avatar answered Sep 23 '22 10:09

Pierre de LESPINAY