PHP application to Python WSGI

I'm currently working on a PHP project to create a web based code editor. It includes many PHP files. I'm now planning to convert them into python code to make it run on web.py( a minimalistic Python web framework). Web.py is almost straight forward python. I want to know how complex it would be to convert the files to Python application and make it work as expected. If possible can anyone give a few bare guidelines to follow to systematically do the process.

Replies

  • xheavenlyx
    xheavenlyx
    Hi Siraj,

    Good decision moving to Python.

    You will need to breakdown your project. Start with the models. Make a list by hand and put them in your web.py framework. Then work towards the methods and functions.

    After that your views. Test your views by raw data output. i.e. Display nothing but the variables and some
    .

    A Tip: I think you might be using Ajax calls for saving these files so user does not need to navigate into other window. This is done easily. Remember to specify the url for ajax calls.
  • siraj.mussafirr
    siraj.mussafirr
    xheavenlyx
    Hi Siraj,

    Good decision moving to Python.

    You will need to breakdown your project. Start with the models. Make a list by hand and put them in your web.py framework. Then work towards the methods and functions.

    After that your views. Test your views by raw data output. i.e. Display nothing but the variables and some
    .

    A Tip: I think you might be using Ajax calls for saving these files so user does not need to navigate into other window. This is done easily. Remember to specify the url for ajax calls.
    Thank you xheavenly.. I'll try my best.. The current application is not a PHP MVC. so i may not be able towork with your advice directly. I'll post here once i've done with it.. Thank you.. 😀

You are reading an archived discussion.

Related Posts

Hello everybody, I am a student and this is my first post... If you connect the signal leads to the two identical signals, having some phase difference then - you'll...
CE Weekend Debate #1 was our first attempt to conduct an online debate among CEans and the topic was "Should Education Be Free For Everyone?". The topic itself was open...
(from K.Baloo via email) Four surgeons are discussing who were the best patients to operate on.. The first surgeon says, 'I like to see Accountants on my operating table because...
https://msn.careerbuilder.com/Articl...lls-gap-impacting-employers-across-the-globe/