Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

manage.py runserver - ImportError: No module named MYSITE

I can't get the dev environment running!

I've been following the instructions here (tutorial on DjangoProject page). When I type

manage.py runserver

I get the following error:

ImportError: No module named MYSITE

I am executing the command within the folder MYSITE which has the files init.py, manage.py, settings.py, urls.py

I've searched around and found questions on "manage.py runserver", but not this specific error. Your help is greatly appreciated. Thanks

like image 934
XYZ91525 Avatar asked Dec 29 '25 03:12

XYZ91525


1 Answers

If you're using windows, you'll need to put your project's directory (the one with manage.py in it) into an environment variable called PYTHONPATH.

like image 180
orokusaki Avatar answered Dec 31 '25 00:12

orokusaki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!