ubuntu14.10下查看Django源文件的路径位置

来源:互联网 发布:管家婆数据库安装教程 编辑:程序博客网 时间:2024/04/29 23:46
Where are the Django source files?
If you have difficulty finding where the Django source files are located on your system, run the following command:
python -c "import syssys.path = sys.path[1:]import djangoprint(django.__path__)"
xx@ubuntu:~$ python -c "> import sys> sys.path = sys.path[1:]> import django> print(django.__path__)"['/usr/local/lib/python2.7/dist-packages/django']xx@ubuntu:~$ 
输入上面的命令即可查看django在你系统中的位置(源自官方文档)
 
 
OK, Enjoyt it!!!
                                             
0 0
原创粉丝点击