On Jan 5, 1:34 am, TheRedRabbit <aqu...@gmail.com> wrote:
> on linux you have to type: > > 'python django-admin.py startproject projectname' > Actually this is incorrect. see line 1 of django-admin.py[1] That line allows the python script to be ran as a regular command it is called the shebang [2]. The only time you need to call `python django- admin.py` on linux is if you're specifying a python version to use, say 2.6 is the default but you want to check against 2.7 or 3.x. then you would specify the right python interpreter (either calling the full path to it or if you set it up with an extension and have it in your path, i.e. /usr/bin/python3). Otherwise the shebang line will take care of it for you. [1] http://code.djangoproject.com/browser/django/trunk/django/bin/django-admin.py#L1 [2] http://en.wikipedia.org/wiki/Shebang_(Unix) -- 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.