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

  • SEARCH
  • Home
  • 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 7973419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:05:51+00:00 2026-06-04T08:05:51+00:00

I have written a webapp using traditional cgi. I’m now trying to rewrite it

  • 0

I have written a webapp using traditional cgi. I’m now trying to rewrite it with bottle

The page is simple…the user fills out a form, hits submit and the data object is sent to a python script that used to live in my cgi-bin

The python script generates an image, and prints the url for that image out to standard out

On callback, I use javascript to display the newly generated image on the page formatted with html.

The issue that I’m having with bottle is getting the image-generating script to execute when it receives the post request. I’m used to handling the post request and callback with javascript (or jquery). should I be using a bottle method instead?

  • 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. Editorial Team
    Editorial Team
    2026-06-04T08:05:54+00:00Added an answer on June 4, 2026 at 8:05 am

    I actually resolved the issue. The Bottle framework tutorial encourages first-time users to set up the server on a high port (to avoid conflict with apache, etc) for development. I was missing two parts of the process: 1. import the python script so that it can be called from the main bottle file 2. in the main bottle file, add a route to the api link (for the javascript to work) I’m not sure if I would have had to add the route if I was running the server on port 80

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

Sidebar

Related Questions

I had the following idea: Say we have a webapp written using django which
I have a webapp written in PHP using a MySQL database backend. This question
i have written a small webapp using spring-security and spring-mvc with an annotation based
I'm trying to use Maven, Jetty and HtmlUnit to test a webapp written using
I have written a small webapp using the flask framework that involves plotting using
I have written a Python TCP/IP server for internal use, using win32serviceutil/py2exe to create
I have written a simple Java dispatcher with a daemon thread to handle the
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that
I have taken over a medium sized project that was written originally using RoR.
I try to develop a simple webapp using GWT + hibernate4 + Apache Tomcat.

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.