Skip to content Skip to sidebar Skip to footer

Modulenotfounderror: No Module Named 'mysite'

I have setup Python, Django and MySQL on my Windows machine. I'm trying to verify my database connection by running the following from a directory named 'zibit': > myvenv\Scrip

Solution 1:

The back-slashes are killing your path string:

path = 'C:\Users\abc123\Documents\zibit'

should be

path = r'C:\Users\abc123\Documents\zibit'

or

path = 'C:\\Users\\abc123\\Documents\\zibit'

If you're using virtualenvwrapper-win you could go to the zibit directory and issue

add2virtualenv .

which will set up the paths for you (it will work better than editing the wsgi file if you need to work with multiple virtualenvs).

Post a Comment for "Modulenotfounderror: No Module Named 'mysite'"