红联Linux门户
Linux帮助

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

发布时间:2016-04-12 15:00:30来源:linux网站作者:zhuxiongxian

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 sys 
sys.path = sys.path[1:] 
import django 
print(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在你系统中的位置(源自官方文档)。


本文永久更新地址:http://www.linuxdiyf.com/linux/19714.html