Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When I set up my app.yaml I just poured through this page: <a href="http://code.google.com/appengine/docs/python/config/appconfig.html" rel="nofollow">http://code.google.com/appengine/docs/python/config/appconfig.html</a> You have to think like a regular expression parser. Anything that fails to match the preceding expressions will fall through to your wildcard handler and cause weirdness.</p> <p>One thing I notice is that you should add <code>login: admin</code> to your task queue handler. This will prevent external requests from hitting that URL accidentally. </p> <p>Also, when you are submitting tasks to your handler, if you don't include the trailing slash (<code>/task?blah=something</code> instead of <code>/task/?blah=something</code>) the request would fall through to your wildcard handler and get sent to Home.py. That could also happen for <code>/image/</code>, <code>/browse/</code> and <code>/api/</code>. You should put logging calls into those handlers to make sure they are getting called when expected.</p> <p>Nothing jumps out at me as obviously wrong in your app.yaml though. But since there are GETs showing up in your log, that indicates that something is requesting that URL, and it's not just the <code>get</code> method getting called twice internally.</p> <p>Edit:</p> <p>Hold on a sec, just noticed that you have this in your app.yaml twice. You shouldn't need to do that.</p> <pre><code>- url: /movie/(.*)/rating-review-video/ script: /wianga/site/MoviePage.py - url: /movie/(.*)/rating-review-video script: /wianga/site/MoviePage.py` </code></pre> <p>Try replacing with:</p> <pre><code>- url: /movie/(.*)/rating-review-video.* script: /wianga/site/MoviePage.py` </code></pre> <p>Edit2:</p> <p>Try adding this to the top of your <code>get</code> method:</p> <pre><code> logging.info('environ: ' + str(self.request._environ)) </code></pre> <p>Pop the output into a beautifier ( <a href="http://jsbeautifier.org/" rel="nofollow">http://jsbeautifier.org/</a> ) to make it more readable, and take a look at the REQUEST_METHOD, QUERY_STRING, HTTP_USER_AGENT, HTTP_COOKIE, PATH_INFO, and HTTP_REFERER params to see where the requests are actually coming from. If they are all coming from your browser then there is something weird in your html, like hidden iframes (are you using Channel API?).</p> <p>Also, try going to <a href="http://localhost:8080/_ah/admin/queues" rel="nofollow">http://localhost:8080/_ah/admin/queues</a> and making sure there aren't any old tasks hanging around.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload