Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 48729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:19:32+00:00 2026-05-10T16:19:32+00:00

I am planning on porting a PHP application over to Python. The application is

  • 0

I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight reporting interface.

I did not use a framework in the PHP version, but being new to Python, I am wondering if it would be advantageous to use something like Django or at the very least Genshi. The caveat is I do not want my application distribution to be overwhelmed by the framework parts I would need to distribute with the application.

Is using only the cgi import in Python the best way to go in this circumstance? I would tend to think a framework is too much overhead, but perhaps I’m not thinking in a very ‘python’ way about them. What suggestions do you have in this scenario?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:19:33+00:00Added an answer on May 10, 2026 at 4:19 pm

    The command-line Python, IMO, definitely comes first. Get that to work, since that’s the core of what you’re doing.

    The issue is that using a web framework’s ORM from a command line application isn’t obvious. Django provides specific instructions for using their ORM from a command-line app. Those are annoying at first, but I think they’re a life-saver in the long run. I use it heavily for giant uploads of customer-supplied files.

    Don’t use bare CGI. It’s not impossible, but too many things can go wrong, and they’ve all been solved by the frameworks. Why reinvent something? Just use someone else’s code.

    Frameworks involve learning, but no real ‘overhead’. They’re not slow. They’re code you don’t have to write or debug.

    1. Learn some Python.

    2. Do the Django tutorial.

    3. Start to build a web app.

      a. Start a Django project. Build a small application in that project.

      b. Build your new model using the Django ORM. Create a Django unit test for the model. Be sure that it works. You’ll be able to use the default admin pages and do a lot of playing around. Just don’t build the entire web site yet.

    4. Get your command-line app to work using Django ORM. Essentially, you have to finesse the settings file for this app to work nicely. See the settings/configuration section.

    5. Once you’ve got your command line and the default admin running, you can finish the web app.

    Here’s the golden rule of frameworks: It’s code you don’t have to write, debug or maintain. Use them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 101k
  • Answers 101k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer http://htmlhelp.com/reference/html40/tables/tbody.html: The TBODY element defines a group of data rows… May 11, 2026 at 8:05 pm
  • Editorial Team
    Editorial Team added an answer You assign your button to the the form's .AcceptButton property. May 11, 2026 at 8:05 pm
  • Editorial Team
    Editorial Team added an answer I think you don't want to use GROUP BY /… May 11, 2026 at 8:05 pm

Related Questions

I am planning on creating a small website for my personal book collection. To
I am planning on putting up a web service, or some other service exposed
I am building an application and I am planning on using OpenSSL for securing
I am currently working on a project that will store specific financial information about

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.