Where is my Django installation?

前端 未结 10 2007
小蘑菇
小蘑菇 2020-12-12 15:13

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?

10条回答
  •  粉色の甜心
    2020-12-12 16:13

    $ python
    >>> import django
    >>> django.__file__
    '/usr/local/lib/python2.7/site-packages/django/__init__.pyc'
    

提交回复
热议问题