On Tue, Jul 15, 2008 at 9:27 AM, Ralph <[EMAIL PROTECTED]> wrote:
>
> I'm trying to install django for the first time.
>
> I've read through at least 3 tutorials on how to install django and by
> using parts of all three I managed to get the django files installed,
> but I followed this command
>
>>>> import django
>
> I get
>
> Traceback............
> File "<stdin>", line 1, in <module>
>  ImportError: No module named django
>
>
> I'm using
> Vista
> Python25
>
> The directory structure is like this:-
> Python25\Lib\site-packages\django\django\bin

If you check out a svn version to your site-packages, you should have
a path like this:
Python25\Lib\site-packages\django\bin

What I do is this:

1. check out the svn version to some directory, for example
   c:\svn\django-trunk.  From the command-line:

   svn co http://code.djangoproject.com/svn/django/trunk/ c:\svn\django-trunk

   (that should be one line)

2. create a file called django.pth in the site-packages directory and
   enter the path of the directory you used in step 1.

In your case you should end up with the file

  C:\Python25\Lib\site-packages\django.pth

which contains

  c:\svn\django-trunk

(or whatever path you used in step 1.)


Arien

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to