Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 1, 2010 03:51:26

vamsy k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

php script in django app


Hi,

I am trying to embed an Ajax call to load some RSS feeds using a PHP
script in my Django app. This does not work and it returns my actual
PHP code which is not getting executed. This works when I try the same
outside of Django in Apache.

Can someone help me to get it working? Is it ok to use a PHP script in
a Django app? Or am I trying to stick a Ferrari in a box of Apples?

Thanks in advance.

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 1, 2010 04:04:51

Javier G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

php script in django app


On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna <badguitar...@gmail.com> wrote:
> I am trying to embed an Ajax call to load some RSS feeds using a PHP
> script in my Django app. This does not work and it returns my actual
> PHP code which is not getting executed. This works when I try the same
> outside of Django in Apache.

i guess that it doesn't work when using Django's dev server.

- to execute PHP, you need a PHP interpreter

- Django's devserver is a simple Python HTTP server that translates
every request into WSGI calls to Django.


so.... should it work? no way

--
Javier

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 1, 2010 04:13:17

vamsy k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

php script in django app


Oh ok. Thanks for the quick response. I guess I'll have to rewrite the
script in Python.

On Dec 1, 9:04 am, Javier Guerra Giraldez <jav...@guerrag.com> wrote:
> On Tue, Nov 30, 2010 at 10:51 PM, vamsy krishna <badguitar...@gmail.com>
> wrote:
> > I am trying to embed an Ajax call to load some RSS feeds using a PHP
> > script in my Django app. This does not work and it returns my actual
> > PHP code which is not getting executed. This works when I try the same
> > outside of Django in Apache.
>
> i guess that it doesn't work when using Django's dev server.
>
> - to execute PHP, you need a PHP interpreter
>
> - Django's devserver is a simple Python HTTP server that translates
> every request into WSGI calls to Django.
>
> so.... should it work?  no way
>
> --
> Javier

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Dec. 1, 2010 09:27:18

F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

php script in django app


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Maybe this?http://pythonpaste.org/wphp/- --
Abordemos el parlamento! --http://pirata.catEn democracia, dos Belén Esteban valen más que tú
Di NO al top-posting!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/iQIcBAEBCAAGBQJM9hS2AAoJEAWOKfEESaOwmuQQALZpz9hc5UlSoL3EDKMdh3qW
oPOVBqwu1v+8CtOJRh5dIwxNILBuWuyIM5bJLwGcLBK1BPvs2Sw+OHBytqGpgSIe
d1dWd5p755UHCdPeQjn06BcptCbv+9DoUSufmEBNZe7QurZ/ggQL+7bZKTDmuXyw
n9V93Q0SMeSC1pBjElw01eQaHOJ6OCmmebwmkF5UfVpClEL5j2qV+ksRwUG+yd3P
zxhcN/tGTyLcbG2A4GQby651Lb3G4d1UrtpRA5mOS0lFRE0AzRomLc+eVXv1tUpO
Wk6UX3HIsgiILL27DgC03q1/eXZKmwkDx0xF+eVbYBNs6gjw1MFQAzW7Tf2bqe/D
vkspRQbO6DMj1piKOkT7+b+YH63pE5yZ3QmUlNnydjf4qzeJfEa2AWL0rDUZvHTO
IX1FRUTr7tNIKAtLC1FKwb33powpm170a0Hm87onmoobv/rg9+U4ulKtFpk4/XF4
9X38tca1o5I9qhHU5/acjzgfYry5CTRY79n1TYQ5AJHA2XcAQF9fVHgc+lAHns7Q
QARdJz98RKBvPV+ZNZSq3PxKlQRVE2MsuQqWDmUKINYWMGAhlwg7wJkQUCZxK8qx
HDj1UXiNpWyXMoSIB0p4p16z4/PGqHeR7C6CTFga0A06q0iqJQYGNjhWmwSx7+vK
ZQUtQd+l588ya/e/ctyJ
=nl2Z
-----END PGP SIGNATURE-----

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 21st of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support