如何查看PYTHON Django的保存路径

$ python -c " import sys sys.path = sys.path[1:] import django print(django.__path__)"





C:\Users\Administrator\Desktop\security_test\django_test\test_per>python
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path = sys.path[1:]
>>> import django
>>> print (django.__path__)
['D:\\Python27\\lib\\site-packages\\django']
>>>

posted on 2015-03-06 14:09  lausdeo wang  阅读(575)  评论(0编辑  收藏  举报