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 7416153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:26:11+00:00 2026-05-29T07:26:11+00:00

I have never written a python script in my life, but I have a

  • 0

I have never written a python script in my life, but I have a question that can hopefully be solved pretty quickly…

I’m using Google App Engine and Dropbprox. The script uses a custom domain to point to your public DropBox folder for better DropBox URLs. I’d like to be able to redirect users to my main site (jacob.bearce.me) if they visit my dropbox url (dl.bearce.me).

The problems that I’m having:

  • I’ve never used GAE or Python before, so I have no idea where to even begin
  • Putting a index.html file in my GAE project didn’t fix it (I was hoping it’d just default to that if there was no filename specified, like it would on a normal site, but no cigar.)

Just a simple redirect if a users visits the main URL is all I’m after, nothing fancy.

My Python file: http://dl.bearce.me/mirror.py

  • 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-05-29T07:26:12+00:00Added an answer on May 29, 2026 at 7:26 am

    Here’s a main.py that issues a redirect for all requests, using the Python 2.5 runtime environment:

    from google.appengine.ext import webapp
    from google.appengine.ext.webapp import util
    
    class MainHandler(webapp.RequestHandler):
        def get(self):
            self.redirect('http://jacob.bearce.me/')
    
    application = webapp.WSGIApplication([('/.*', MainHandler)],
                                         debug=True)
    
    def main():
        util.run_wsgi_app(application)
    
    if __name__ == '__main__':
        main()
    

    And here’s the app.yaml file you need to route URLs to this handler:

    application: myapp
    version: 1
    runtime: python
    api_version: 1
    
    handlers:
    - url: .*
      script: main.py
    

    (Replace myapp with your actual app ID.)

    For more information about creating and uploading an App Engine app in Python, see the Getting Started tutorial.

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

Sidebar

Related Questions

I have written a Python script that checks a certain e-mail address and passes
I have never written a DSL, but I am considering it as a feature
I have never written any code that uses threads. I have a web application
First of all, I have never written a property editor from scratch, but had
I have been writing specs for controllers and models, but I have never written
I have a simple blog application written in Python, using Django. I use Git
My python level is Novice. I have never written a web scraper or crawler.
I have written code within Python that doesn't release memory the way it should.
Ok I have written some basic generic webservices before but I have never tried
I have a python script that runs a subprocess to get some data and

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.