473,224 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

ImportError using Django

18
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
2 2059
bartonc
6,596 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
6,596 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

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

Similar topics

13
by: Ilias Lazaridis | last post by:
I have implemented a simple schema evolution support for django, due to a need for a personal project. Additionally, I've provided an Audit: http://case.lazaridis.com/wiki/DjangoAudit As a...
2
by: jeffself | last post by:
I'm running Python 2.5.1 which I'm getting from the MacPort package system. I just installed Django and tried to start up the Django server and I got the following error: ImportError: No module...
7
by: sami | last post by:
Hi I am trying to write a facebook application in python - I have been programming simple desktop applications till now and am not really familiar with web apps Pyfacebook is the wrapper for...
1
by: etratch | last post by:
hi, i'm running apache 2.2.3 on Linux and have python 2.5 and postgreSQL 8.2 installed. now, i inside it through the command prompt and use syncdb. but when i call Code: ( text ) 1. ...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.