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在你系统中的位置(源自官方文档)。