Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80616

Converting a PHP app to Python + Django (was: Communicating with a PHP script (and pretending I'm a browser))

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Django': 0.03; 'subject:Python': 0.06; 'subject: + ': 0.07; 'migration': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:script': 0.09; '\xe2\x80\x94': 0.09; 'developers,': 0.11; 'python': 0.11; 'django': 0.11; 'language,': 0.12; 'finney': 0.16; 'path.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'rewriting': 0.16; 'shops': 0.16; 'subject:Converting': 0.16; 'subject:PHP': 0.16; 'code,': 0.22; 'header:User-Agent:1': 0.23; "i've": 0.25; 'right.': 0.26; 'header:X-Complaints-To:1': 0.27; 'michael': 0.29; 'code': 0.31; 'base,': 0.31; 'convince': 0.31; 'religious': 0.31; 'writes:': 0.31; 'quite': 0.32; 'open': 0.33; 'worked': 0.33; 'standards': 0.33; 'subject: (': 0.35; 'subject:with': 0.35; 'knows': 0.35; 'really': 0.36; 'done': 0.36; 'url:org': 0.36; 'should': 0.36; 'requirements': 0.37; 'clear': 0.37; 'being': 0.38; 'ben': 0.38; 'writes': 0.38; 'to:addr:python- list': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'subject:skip:C 10': 0.61; 'new': 0.61; 'entire': 0.61; 'more': 0.64; 'skip:\xe2 10': 0.65; 'shop': 0.69; 'received:125': 0.84; 'shop,': 0.84; 'stranded': 0.84; 'url:video': 0.84; '\xe2\x80\x9cthe': 0.91; 'convinced': 0.93; 'hand,': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Converting a PHP app to Python + Django (was: Communicating with a PHP script (and pretending I'm a browser))
Date Thu, 13 Nov 2014 04:54:45 +1100
References <CACwCsY46yYFQwdYdriTSYSvLYF=xs6L2zanN9gofkWkoHvj_fA@mail.gmail.com> <CAPTjJmpR_Yj-rwTHsodDquHuML3vX2vQrjCiseJcV5e+nfZGZg@mail.gmail.com> <CACwCsY5denavfJQYS6x0Lknj-WJW2qfskVdYcuOuJ4P8h0u6gQ@mail.gmail.com> <CAPM-O+z9wdFcO7Hj=oKh-M1Cht-Wt35UWxavEPPbGxNGHOxpqA@mail.gmail.com> <CACwCsY6copVYtNe-az7jd2vzcgF76FPnn9t-Q0u6NGevY8Y-Bg@mail.gmail.com> <546395E9.40902@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:d1sxxewxXDRdCzIAXQzEOOj71jY=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15732.1415814896.18130.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415814896 news.xs4all.nl 2960 [2001:888:2000:d::a6]:55008
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80616

Show key headers only | View raw


Michael Torrie <torriem@gmail.com> 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”
<URL:http://pyvideo.org/video/2233/transitioning-from-php-to-django-on-the-sly>.

The presenter emphasises that one of the more important requirements is
to convince everyone: the management, the developers, even stakeholder
customers/users.

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

Right. On the other hand, I've worked in shops where the big PHP code
base is seen by all as a legacy code base, and the stakeholders were
quite open to being convinced to migrate — provided a clear migration
path.

That's what the above presentation goes into. I recommend it.

-- 
 \         “The double standard that exempts religious activities from |
  `\       almost all standards of accountability should be dismantled |
_o__)                   once and for all.” —Daniel Dennett, 2010-01-12 |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Converting a PHP app to Python + Django (was: Communicating with a PHP script (and pretending I'm a browser)) Ben Finney <ben+python@benfinney.id.au> - 2014-11-13 04:54 +1100

csiph-web