Whether the Django test was installed successfully

Source: Internet
Author: User
After we install Django, we don't have to rush to develop, we first need to know if our Django installation is successful. Here to note: Some children's shoes response installation is unsuccessful, most of the reason is: permissions issues, the current user's permissions are not enough. The file is written to the/usr/local/lib/during the Django installation, so verify that the current user has permission to operate the Lib directory before installing. This will ensure success.

Well, let's take a look at whether our Django has been successfully installed ...

1. Switch to any directory on Linux and enter the command:
shell# python

The results shown are:

Python 2.7.2 (default, Jan 19 2012, 18:26:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.

2. Then try introducing the Django module and entering the command:

>>> Import Django

No output, no error, it should be the introduction of success

3. Look at the Django version and enter the command:

>>>django. VERSION

Note: version is all uppercase

Output Result:

(1, 4, 3, ' final ', 0)

Represents the final version of 1.4.3

This also means that we installed the Django success!
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.