"manage.py" command not found

1,578 views
Skip to first unread message

Phil

unread,
Aug 30, 2011, 4:01:25 PM8/30/11
to django...@googlegroups.com
Hi,

I'm running the latest django 1.4 alpha from the repository.

I have a django project hosted on bitbucket, I run the bitbucket "clone" command and pull down my code onto my server. But when I go into my project folder and run the command...

"./manage.py runfcgi method=threaded host=127.0.0.1 port=8080"

I get the following error...

"manage.py: command not found"

If I start a project directly on my server running the "startproject" command it works fine, it's only when I clone a project onto my server I get this.

Is there anything I can do to make my cloned projects work? As I need to be able to pull the latest project versions from my repositories.

Thanks.

Yves S. Garret

unread,
Aug 30, 2011, 4:04:03 PM8/30/11
to django...@googlegroups.com
Put python in front of it or check permissions to make it executable?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/14GRq9ygTJsJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Phil

unread,
Aug 30, 2011, 4:11:12 PM8/30/11
to django...@googlegroups.com
The permissions were OK, but putting python in front of it seems to have worked(I have database connection issue now, but once I fix that I reckon it will be work)!

Thanks Yves, big help!

Yves S. Garret

unread,
Aug 30, 2011, 4:18:24 PM8/30/11
to django...@googlegroups.com
I don't know about Windows (if anyone does, please say so), but in a *nix OS putting this (don't remember its official name) at the top of your file can help:

#!/usr/bin/env python

On Tue, Aug 30, 2011 at 4:11 PM, Phil <phi...@gmail.com> wrote:
The permissions were OK, but putting python in front of it seems to have worked(I have database connection issue now, but once I fix that I reckon it will be work)!

Thanks Yves, big help!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Y0D0NYyo4Q8J.

Phil

unread,
Aug 30, 2011, 4:22:18 PM8/30/11
to django...@googlegroups.com
I opened my "manage.py" file to insert the line, but it was already there on the first line.


Shawn Milochik

unread,
Aug 30, 2011, 4:22:16 PM8/30/11
to django...@googlegroups.com
On 08/30/2011 04:18 PM, Yves S. Garret wrote:
> I don't know about Windows (if anyone does, please say so), but in a
> *nix OS putting this (don't remember its official name) at the top of
> your file can help:
>
> #!/usr/bin/env python
>

It's called a 'shebang line,' and it's ignored in Windows.

It's important in *nix, but the file still has to be executable.

If you invoke Python manually then the line isn't necessary.

Yves S. Garret

unread,
Aug 30, 2011, 4:24:43 PM8/30/11
to django...@googlegroups.com
Maybe you have Python installed somewhere that's not described in the shebang line?

Don't know, don't know your environment.  Glad that your stuff works now :) .

On Tue, Aug 30, 2011 at 4:22 PM, Phil <phi...@gmail.com> wrote:
I opened my "manage.py" file to insert the line, but it was already there on the first line.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/uXSA23Fl7iEJ.

Mitesh Patel

unread,
Aug 30, 2011, 4:28:46 PM8/30/11
to django...@googlegroups.com
Hi,

Put python (Location of install python directory. mainly C:\Python26\) in your windows environment variable path also with django-admin.py path.

Thanks,

Mitesh Patel

Senior OpenSource Executive,
Reply all
Reply to author
Forward
0 new messages