码迷,mamicode.com
首页 > 编程语言 > 详细

如何查看PYTHON Django的保存路径

时间:2015-03-06 15:41:00      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:

如何查看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‘]
>>>

如何查看PYTHON Django的保存路径

标签:

原文地址:http://www.cnblogs.com/lausdeo/p/4318079.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!