且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我的 Django 安装在哪里?

更新时间:2023-10-23 13:36:04

在 CLI 中,您可以这样做:

>>>导入 django>>>姜戈<来自'/usr/local/lib/python2.6/dist-packages/django/__init__.pyc'的模块'django'>

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?

in the CLI you can do this:

>>> import django
>>> django
<module 'django' from '/usr/local/lib/python2.6/dist-packages/django/__init__.pyc'>