Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is django giving error: no module named django.core?

I get the error in question when I attempt to create a project. I followed the instructions found at how to install python an django in windows vista.

like image 636
mkelley33 Avatar asked May 09 '09 14:05

mkelley33


People also ask

How do I fix Django error module not found?

The Python "ModuleNotFoundError: No module named 'django'" occurs when we forget to install the Django module before importing it or install it in an incorrect environment. To solve the error, install the module by running the pip install Django command.

How do I fix Django admin not recognized?

To fix this, first close the terminal window and relaunch it with administrator privileges. Once you launch the elevated terminal window change directory to where you wish to start your Django project. The command should work.

Why does Python manage py Runserver not work?

The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer's network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

What is import error in Django?

db' pylint(import-error) showing up. This is because VS Code is not running the Virtual Environment of the app. To fix it, run cmd-shift-p (or click View -> Command Palette and run the command Python: Select Interpreter. VS Code will show you a list of Python interpreters found.


2 Answers

Also make sure that you have permission to access all of django's files. I've seen these kinds of errors happen because of permissions issues before.

EDIT: I haven't tried it out, but there's a link on that page to Instant Django, which looks like a pretty easy to set up.

like image 144
Jason Baker Avatar answered Oct 06 '22 00:10

Jason Baker


You can get around this problem by providing the full path to your django-admin.py file

python c:\python25\scripts\django-admin.py startproject mysite
like image 36
Niyaz Avatar answered Oct 05 '22 23:10

Niyaz