django ImportError: No module named yoursitename 11
This has been frustrating me on and off for quite a while. Here’s how to fix it.
add a file called __init__.py to your folder. Done.
The error message, if you can call it that, is vague.
Basically, all python modules require this file.
Django doesn’t add one when you create a site ( an oversight in my opinion ), so you have to remember to add one. I have been doing PYTHONPATH funkiness and other hacks to get the site working without this. Now I can just relax, code and drink tea.
Trackbacks
Use the following link to trackback from your own site:
http://www.nervetree.com/trackbacks?article_id=django-importerror-no-module-named-yoursitename&day=16&month=12&year=2007
Thanks. That was a time saver!
Thank you! I took me some time to find an error. Your hint was very valuable!
That just saved me from committing sepuku.
Thanks for this mate. Life saver!
You are brilliant, this was really driving me nuts. I spent hrs on it.
Thank you.
still doesn’t work. I’ve installed the project into directory named different from project name. might that be a problem?
Thank you in support of getting the time to talk about this, I think strongly
about that and love learning a lot more on this subject. If achievable,
when you acquire expertise, would you mind updating your blog with
additional facts? It is extremely very helpful.
These kind of post are always inspiring and I prefer to read quality content so I’m happy to find many good point here in the post, writing is simply great, thank you for the post.
These kind of post are always inspiring and I prefer to read quality content so I’m happy to find many good point here in the post, writing is simply great, thank you for the post.
I am not sure where you are getting your information, but good topic. I needs to spend some time learning much more or understanding more. portable generators
Thanks a bunch!
This was much more helpful then stackoverflow’s millions of pointless answers.