标签:
refrence: https://docs.djangoproject.com/en/1.8/intro/install/
You’ve got three easy options to install Django:
Always refer to the documentation that corresponds to the version of Django you’re using!
If you do either of the first two steps, keep an eye out for parts of the documentation marked new in development version. That phrase flags features that are only available in development versions of Django, and they likely won’t work with an official release.
for unix:
$sudo apt-get install python-django
~$mkdir django-web ~$virtualenv django-web ~$. django-web/bin/active (django-web)cc@debian:~$pip install Django
To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django:
>>> import django >>> print(django.get_version()) 1.8.3
You may have another version of Django installed.
标签:
原文地址:http://www.cnblogs.com/BugQiang/p/4718653.html