Wednesday, May 2, 2012

Google AppEngine start

- Works with 2.5 or 2.7 python versions.
- Sometimes python path is not saved, just execute command to set a python path:

defaults write Python "YOUR_PATH"

- Application name should be conformed with regex   '^(?:[a-z\d\-]{1,100}\~)?(?:(?!\-)[a-z\d\-\.]{1,100}:)?(?!-)[a-z\d\-]{1,100}$'

This is an example error for a project with capital letters in the name:

*** Running dev_appserver with the following flags --admin_console_server= --port=8088

Python command: /usr/bin/python2.5

WARNING  2012-04-30 11:39:22,839] No ssl package found. urlfetch
will not be able to validate SSL certificates.
WARNING  2012-04-30 11:39:23,686] The rdbms API is not available
because the MySQLdb library could not be loaded.
ERROR    2012-04-30 11:39:24,296] Fatal error when loading
application configuration:

Unable to assign value 'Test' to attribute 'application':
Value 'Test' for application does not match expression '^(?:[a-z\d\-]{1,100}\~)?(?:(?!\-)[a-z\d\-\.]{1,100}:)?(?!-)[a-z\d\-]{1,100}$'
  in "/Users/MYNAME/Test/app.yaml", line 1, column 14

Sample app.yaml

application: simply-should-work
version: 1
runtime: python27
api_version: 1
threadsafe: yes

- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*

- name: webapp2
  version: "latest"

0 коммент.:

Post a Comment

Powered by Blogger.