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
Here’s a
main.pythat issues a redirect for all requests, using the Python 2.5 runtime environment:And here’s the
app.yamlfile you need to route URLs to this handler:(Replace
myappwith your actual app ID.)For more information about creating and uploading an App Engine app in Python, see the Getting Started tutorial.