标签:
如何查看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‘]
>>>
标签:
原文地址:http://www.cnblogs.com/lausdeo/p/4318079.html