Django Exception-Importerror:no module named Django.core.management

Source: Internet
Author: User
Django Error-Importerror:no module named Django.core.management
Problem Description:
Enter manage.py runserver at the command line, prompting that the Django.core.management module cannot be found.

Problem Analysis:
1. Make sure Django is installed, and do the Django installation directory view, Django.core.management does exist
2. There are two versions of Python on the computer, and the Python version of the environment variable settings is installed with Django
3. In turn, enter at the command line:
Python
Import Django
Django. VERSION
Have the Django version printed out V1.3.1

4. Continue 3rd, enter at the command line:
From django.core.management import Execute_manager
Command input Normal ... That's weird.

5. You can determine the Django function is normal, have heard python if you install multiple versions at the same time may have version compatibility issues, try to manually specify the Python version to run the Django Project, at the command line input:
Python25 manage.py Runserver
The problem has been solved

Solution:
Before the command manage.py runserver, specify the Python version to use, that is, enter at the command line:
Python25 manage.py Runserver

Summary:
When you have more than one version of Python installed on your computer, sometimes it is possible to make an error even if you have correctly set the version to run in the environment variable, and you can try to specify the python you want to use on the command line, such as Python25 manage.py Runserver

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.