manage.py command not found

5,958 views
Skip to first unread message

jay K.

unread,
Mar 30, 2011, 10:49:08 AM3/30/11
to django...@googlegroups.com

Hello,

I am following the tutorial at http://south.aeracode.org/docs/installation.html#installation-configure in order
to install South.

I've installed it successfully and modified INSTALLED_APPS so
it includes 'south', in the settings.py

now I execute the command: ./manage.py shell inside my current project, but get a "permission denied" message,
so I execute the same command, this time with sudo, so sudo ./manage.py , but it tells me that
./manage.py command not found

can anyone explain me what's wrong?

thanks


Shawn Milochik

unread,
Mar 30, 2011, 10:52:07 AM3/30/11
to django...@googlegroups.com
Check the permissions on manage.py. I'm guessing it's not executable.

Either use chmod +x on manage.py or execute it with Python: python manage.py.

Juan Gabriel Aldana Jaramillo

unread,
Mar 30, 2011, 11:23:24 AM3/30/11
to django...@googlegroups.com
Hi,

Try it: python manage.py

On Wed, Mar 30, 2011 at 9:52 AM, Shawn Milochik <sh...@milochik.com> wrote:
Check the permissions on manage.py. I'm guessing it's not executable.

Either use chmod +x on manage.py or execute it with Python: python manage.py.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.


jay K.

unread,
Mar 30, 2011, 11:25:39 AM3/30/11
to django...@googlegroups.com
Hello, Shawn

I type python manage.py shell in my project directory and get the following error

Error: No module named xxxxxx

regards

On Wed, Mar 30, 2011 at 11:52 AM, Shawn Milochik <sh...@milochik.com> wrote:
Check the permissions on manage.py. I'm guessing it's not executable.

Either use chmod +x on manage.py or execute it with Python: python manage.py.

jay K.

unread,
Mar 30, 2011, 11:57:21 AM3/30/11
to django...@googlegroups.com

hi, Shawn

I finally managed to get python manage.py shell to work, by commenting
out those INSTALLED_APPS that had an issue with 'import xxxxx'

it turns out that 'import xxxxx' was the problem.

do you have any suggestions to fix 'import xxxxx'?

thanks

Shawn Milochik

unread,
Mar 30, 2011, 12:27:30 PM3/30/11
to django...@googlegroups.com
On Wed, Mar 30, 2011 at 11:57 AM, jay K. <jay.deve...@gmail.com> wrote:
>
> hi, Shawn
>
> I finally managed to get python manage.py shell to work, by commenting
> out those INSTALLED_APPS that had an issue with 'import xxxxx'
>
> it turns out that 'import xxxxx' was the problem.
>
> do you have any suggestions to fix 'import xxxxx'?


Depends on what xxxxx is.

Eddie Sullivan

unread,
Mar 30, 2011, 12:56:41 PM3/30/11
to Django users
If you're talking about the line that imports your app, that usually
means you have an error in your application code (the views or the
models). Try starting the shell and run "import xxxxx" manually and
see what errors you get.
-Eddie

On Mar 30, 11:57 am, "jay K." <jay.developer2...@gmail.com> wrote:
> hi, Shawn
>
> I finally managed to get python manage.py shell to work, by commenting
> out those INSTALLED_APPS that had an issue with 'import xxxxx'
>
> it turns out that 'import xxxxx' was the problem.
>
> do you have any suggestions to fix 'import xxxxx'?
>
> thanks
>

spa...@gmail.com

unread,
Mar 31, 2011, 1:14:51 AM3/31/11
to django...@googlegroups.com
Assuming the South is very similar to Django from the documentation at the link. Here are some pointers.
1. Have you tried listing manage.py by trying ls command?
2. If you try ls -l, what are the permissions for manage.py?
3. Have you tried python manage.py?
4. Is there a shebang line at the top of manage.py file assuming the file exists?

Please try these approaches. Hope this helps.

Thanks and Regards,
Sumod

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.



--
http://spawgi.wordpress.com
We can do it and do it better.
Reply all
Reply to author
Forward
0 new messages