PHP application to Python WSGI

siraj.mussafirr

siraj.mussafirr

@sirajmussafirr-UMGx7y • Oct 25, 2024

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

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • xheavenlyx

    xheavenlyx

    @xheavenlyx-CbvN62 Apr 28, 2013

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

    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

    @sirajmussafirr-UMGx7y May 2, 2013

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

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