Tuesday, October 12, 2010

Re: trouble creating first project

On 12 ต.ค. 2010, at 22:20, Phil wrote:

> Thanks for reply Steve.
>
> Yes I seen the section about symbolic linking on the django website.
> It says on the website to type this command....
>
> "ln -s WORKING-DIR/django-trunk/django/bin/django-admin.py /usr/local/
> bin"
>
> which I did(replacing WORKING_DIR obviously with the right path), but
> I'm not sure what "/usr/local/bin" is supposed to point to or what
> path should this be exactly?

The ln -s command will create a symbolic link to django-admin.py in the directory specified by the path /usr/local/bin

Thus after running the command you should now have a django-admin.py located in /usr/local/bin which "points" to the actual django-admin.py, thus making django-admin.py available from wherever - assuming /usr/local/bin is in your PATH...

Hope that helps explain it,
Jonathan
>
>
> On Oct 11, 6:20 pm, Steve Holden <holden...@gmail.com> wrote:
>> On 10/11/2010 1:47 AM, Phil wrote:> Hi,
>>
>>> I am having trouble creating my first project. I am running the latest
>>> version of Ubuntu and I installed Django from svn, when I run 'import
>>> django' i get no errors back so I assume its installed OK.
>>
>>> When I run 'django-admin.py startproject myproject' I get back an
>>> error saying 'django-admin.py: command not found'.
>>
>>> How can I solve/get around this error? Appreciate any help/ advice
>>> offered
>>
>> When you install Django from svn it doesn't add django-admin to any of
>> the directories that your system looks for programs in (i.e. those
>> directories on your path).
>>
>> When you install Django with setuptools (i.e. using setup.py) then you
>> should find that django-admin is placed where it can be found.
>>
>> The simplest way around this is to make a symbolic link from one of the
>> directories on your path to the django-admin.py file.
>>
>> regards
>> Steve
>> --
>> DjangoCon US 2010 September 7-9http://djangocon.us/
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://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-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment