close

[Solved] django import error – No module named core.management

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error django import error – No module named core.management in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How django import error – No module named core.management Error Occurs?

Today I get the following error django import error – No module named core.management in python.

How To Solve django import error – No module named core.management Error ?

  1. How To Solve django import error – No module named core.management Error ?

    To Solve django import error – No module named core.management Error I had this error while trying to run an embedded system (using django of course) on a Raspberry Pi 2 (and not a VM)

  2. django import error – No module named core.management

    To Solve django import error – No module named core.management Error I had this error while trying to run an embedded system (using django of course) on a Raspberry Pi 2 (and not a VM)

Solution 1

Another possible reason for this problem is that your OS runs python3 by default.

Either you have to explicitly do: python2 manage.py

or you need to edit the shebang of manage.py, like so:

#!/usr/bin/env python2

or if you are using python3:

#!/usr/bin/env python3

Solution 2


I had this error while trying to run an embedded system (using django of course) on a Raspberry Pi 2 (and not a VM)

Running this:

 sudo pip install Django

Made the trick!

  • just in case a fellow using Raspbian/Jessie gets this

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read