In article ,
Lie Ryan wrote:
> On 13/11/14 03:57, Larry Martell wrote:
> > We were all making this much harder than it is. I ended up doing this:
> >
> > wp = urllib.request.urlopen('http://php_page/?' + request.POST.urlencode())
> > pw = wp.read()
You can do this if you want, but it's much eas
On 13/11/14 03:57, Larry Martell wrote:
We were all making this much harder than it is. I ended up doing this:
wp = urllib.request.urlopen('http://php_page/?' + request.POST.urlencode())
pw = wp.read()
I was about that suggest that actually, just be careful to escape things
properly. Although
On 11/12/2014 11:37 AM, Marko Rauhamaa wrote:
> Michael Torrie :
>
>> I've worked in shops before where one person comes in with a new
>> language, writes some code, then leaves, leaving us stranded as it
>> were.
>
> Programming languages come and go. If you can handle a Philips
> screwdriver, y
On Wed, Nov 12, 2014 at 12:54 PM, Ben Finney wrote:
> Michael Torrie writes:
>
>> If the shop is entire a PHP shop, and no one knows python, then
>> rewriting things in Python and Django is a really bad idea.
>
> It can be done well; see “Transitioning from PHP to Django on the sly”
> http://pyvi
Michael Torrie :
> I've worked in shops before where one person comes in with a new
> language, writes some code, then leaves, leaving us stranded as it
> were.
Programming languages come and go. If you can handle a Philips
screwdriver, you should be able to learn the use of a Torq screwdriver
wi
Michael Torrie writes:
> If the shop is entire a PHP shop, and no one knows python, then
> rewriting things in Python and Django is a really bad idea.
It can be done well; see “Transitioning from PHP to Django on the sly”
http://pyvideo.org/video/2233/transitioning-from-php-to-django-on-the-sly>
On 11/11/2014 10:30 AM, Larry Martell wrote:
> They are technically savvy. They are a 100% PHP shop. They have a big,
> complicated app that they've been working on for 10 years. No one
> there knows python or django. They want to put some new frontends on
> their app. I was bought in for another p
On Tue, Nov 11, 2014 at 10:48 AM, Larry Martell wrote:
> I have a PHP app that I want to convert to django. But I want to do it
> stages. All the heavy lifting is in the PHP code, so first, I want to
> just use templates and views to generate the HTML, but still call the
> PHP code. Then later con
On Wed, Nov 12, 2014 at 4:55 AM, Ethan Furman wrote:
> On 11/11/2014 09:30 AM, Larry Martell wrote:
>>
>>
>> They are technically savvy. They are a 100% PHP shop. They have a big,
>> complicated app that they've been working on for 10 years. No one
>> there knows python or django. They want to put
On Tue, Nov 11, 2014 at 12:55 PM, Ethan Furman wrote:
> On 11/11/2014 09:30 AM, Larry Martell wrote:
>>
>>
>> They are technically savvy. They are a 100% PHP shop. They have a big,
>> complicated app that they've been working on for 10 years. No one
>> there knows python or django. They want to pu
On 11/11/2014 09:30 AM, Larry Martell wrote:
They are technically savvy. They are a 100% PHP shop. They have a big,
complicated app that they've been working on for 10 years. No one
there knows python or django. They want to put some new frontends on
their app. I was bought in for another projec
On Tue, 11 Nov 2014 10:48:41 -0500, Larry Martell wrote:
> Is there some way python can communicate like curl ... it needs to send
> the request string in the body of a POST request to the URL that will
> route to the PHP script and get the output back.
http://www.lmgtfy.com/?q=python+http+reques
On Tue, Nov 11, 2014 at 12:31 PM, Marc Aymerich wrote:
> On Tue, Nov 11, 2014 at 6:26 PM, Larry Martell
> wrote:
>> On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote:
>>> On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell
>>> wrote:
On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich
On Tue, Nov 11, 2014 at 6:26 PM, Larry Martell wrote:
> On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote:
>> On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell
>> wrote:
>>> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote:
On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell
wrote
On Tue, Nov 11, 2014 at 11:43 AM, Joel Goldstick
wrote:
> On Tue, Nov 11, 2014 at 11:37 AM, Larry Martell
> wrote:
>> On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico wrote:
>>> On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell
>>> wrote:
Is there some way python can communicate like curl .
On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote:
> On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell
> wrote:
>> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote:
>>> On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell
>>> wrote:
I have a PHP app that I want to convert to django.
On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell wrote:
> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote:
>> On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell
>> wrote:
>>>
>>> I have a PHP app that I want to convert to django. But I want to do it
>>> stages. All the heavy lifting is in the P
On Tue, Nov 11, 2014 at 11:37 AM, Larry Martell wrote:
> On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico wrote:
>> On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell
>> wrote:
>>> Is there some way python can communicate like curl ... it needs to
>>> send the request string in the body of a POST r
On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote:
> On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell
> wrote:
>>
>> I have a PHP app that I want to convert to django. But I want to do it
>> stages. All the heavy lifting is in the PHP code, so first, I want to
>> just use templates and views t
On Tue, Nov 11, 2014 at 10:54 AM, Chris Angelico wrote:
> On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell
> wrote:
>> Is there some way python can communicate like curl ... it needs to
>> send the request string in the body of a POST request to the URL that
>> will route to the PHP script and get
On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell wrote:
>
> I have a PHP app that I want to convert to django. But I want to do it
> stages. All the heavy lifting is in the PHP code, so first, I want to
> just use templates and views to generate the HTML, but still call the
> PHP code. Then later co
On Wed, Nov 12, 2014 at 2:48 AM, Larry Martell wrote:
> Is there some way python can communicate like curl ... it needs to
> send the request string in the body of a POST request to the URL that
> will route to the PHP script and get the output back.
That is possible, but probably more effort tha
I have a PHP app that I want to convert to django. But I want to do it
stages. All the heavy lifting is in the PHP code, so first, I want to
just use templates and views to generate the HTML, but still call the
PHP code. Then later convert the PHP to python.
My issue is that the PHP code expects t
23 matches
Mail list logo