467,861 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,861 developers. It's quick & easy.

ImportError using Django

hi,
i'm running apache 2.2.3 on windows xp and have python 2.5 and mysql 5 installed. i'm having problems installing django. please give me some help.

i created a folder "django" in my c:\python25\lib\site-packages\
then i used svn to stuff it with the latest build (in trunk)
i copied my bin\django-admin.py into the scripts folder of python
i added c:\python25\, c:\python25\scripts\ to my path variable

now, i can create and folder, go inside it through the command prompt and use startproject to create a new project folder with the initial files. but when i call
Expand|Select|Wrap|Line Numbers
  1.  python manage.py runserver
i get the error message
Expand|Select|Wrap|Line Numbers
  1. Traceback (most recent call last):
  2.   File "manage.py", line 2, in ?
  3.     from django.core.management import execute_manager
  4. ImportError: No module named django.core.management
i can't figure out the error. can anybody help? google doesnt give helpful results.

PS: I see something odd. When I am in the python folder, and call "import django" through the interactive interpreter, it works fine. but not in case i run the python interpreter from any other folder. something else might be wrong. perhaps paths or something. am i on the right lead?
Jun 10 '07 #1
  • viewed: 1778
Share:
2 Replies
bartonc
Expert 4TB
Creating a text file with a ".PTH" extension instead of ".TXT" with the path
"django\core\management" as the contents and storing it in the site-packages folder should do the trick.
Jun 10 '07 #2
bartonc
Expert 4TB
i'm running apache 2.2.3 on windows xp and have python 2.5 and mysql 5 installed
By the way, thanks very much for posting such a detailed description for your system and error. That makes things much easier on this end.
Jun 10 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by Ilias Lazaridis | last post: by
2 posts views Thread by jeffself | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.