Just use this --------------------------------------------------------- - url: /mypicpickup_(.+?)\.jpg script: mypicpickup.py --------------------------------------------------------- script should only point to the python file. NO static file syntax.
2010/3/29 ......... <[email protected]>: > Dear all > > I found a very strange problem in my GAE project. > I need your help. > > The detail is: > I create a web site to let my users upload their pictures. > After a user upload, I will store the pic in db blob and assign a > MD5 string as the pic id. > Then I use a mypicpickup.py to let user access their pics. > The app.yaml setting is as below > --------------------------------------------------------- > - url: /mypicpickup_(.+?)\.jpg > script: mypicpickup.py?picid=\1 > --------------------------------------------------------- > > In the mypicpickup.py, > ------------------------------------------------- > def main(): > application = webapp.WSGIApplication([('/mypicpickup_(.+?)\.jpg', > GetPicHandler)], debug=True) > run_wsgi_app(application) > > if __name__ == '__main__': > main() > ------------------------------------------------- > > Before yesterday, this web work normally. > However, today my users got a ERROR MSG -- "500 SERVER ERROR" -- when > they want to get their pictures . > > In the admin console, it shows the error msg. > ----------------------------------------------------- > File referenced by handler not found: mypicpickup.py?picid=<MD5> > ----------------------------------------------------- > <MD5> = the pic id. > > Does anyone know how to fix this error ? > Thanks for your help ! > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
