Tuesday, May 31, 2011

Re: python code works in command line but not in django

On May 31, 12:25 pm, Kann <vearas...@gmail.com> wrote:
> Hi Bruno,
>
> I tested with both system's python shell and the "manage.py shell",
> and both of them also worked. The PNG file was created properly.

Ok.

> I also check the path returned from os.path.abspath() and both of them
> are ok as well.

Ok.

> Now I am testing using the Django embedded development server.

Well... If it works using django shell and not using the embedded
server, you'll have to step-debug your code (you know how to use
pdb ?).

If it works using the embedded server and fail using Apache or another
front-end web server, then it's most probably some ENV / permission
problem.


HTH

--
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