Sam, thanks for your help. Problem solved, partly with your advice. I
had two versions of Python on the same machine, and they were
interacting oddly. The 2.6 was being used when I type "python" at the
command line, but the 3.1 was being invoked for .py filetypes at the
CMD prompt.

Best wishes,

Nick

On Feb 3, 1:16 pm, Sam Lai <samuel....@gmail.com> wrote:
> On 3 February 2010 12:28, NickMellor<nick.mellor.gro...@pobox.com> wrote:
>
>
>
>
>
> > Hi,
>
> > Trying to get started with Django on Windows XP. Trying to create a
> > project. Fails with:
>
> > ImportError: No module named django.core
>
> > Have grabbed djtrunk from svn. The same error, whether I have run
> > setup.py or not (originally I didn't, as per the svn install
> > instructions.)
>
> > Python: 2.6
> > c:\python26\djtrunk (subversion checkout folder)
> > System path: contains either djtrunk\django or site-packages\django
> > (depending on whether I've run setup.py or not)
> > Pythonpath: c:\python26\lib\site-packages\django (if pythonpath
> > deleted, makes no difference--same error)
>
> > There *is* a core module in c:\python26\lib\site-packages\django
>
> Your pythonpath should contain - c:\python26\lib\site-packages
>
> If you include the 'django' directory in that path, python will only
> resolve imports using what's inside, and because there is no 'django'
> directory inside the django directory, it can't resolve it.
>
> if djtrunk is the SVN checkout, what's inside
> c:\python26\lib\site-packages\django ? I wouldn't recommend having two
> versions of Django in system/python path - could lead to odd errors.
>
>
>
> > Can anyone help?
>
> > Thanks,
>
> > Nick
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to