import os from library.dotdict import DotDict from library import utils # Force dev mode even on deployed app. Should be true only when debugging. Caching and error reporting use this setting force_dev = False # App title, used for page title and social sharing title # TODO: Update this app title to reflect your own app_title = 'Not VanillAE' # URLs # TODO: Change this to reflect your local and production URLs urls = DotDict({ 'canonical': 'http://localhost:8080' if utils.is_local() else 'http://notvanillae.appspot.com', 'canonical_secure': 'http://localhost:8080' if utils.is_local() else 'https://notvanillae.appspot.com' }) # Google Data API OAuth Credentials # TODO: Update these to reflect your own scope requirements and credentials at https://code.google.com/apis/console/ oauth = DotDict({ 'client_id': 'your-client-id', 'client_secret': 'your-client-secret', 'scope': [ #'https://www.googleapis.com/auth/glass.timeline ', #'https://www.googleapis.com/auth/userinfo.profile', #'https://www.googleapis.com/auth/drive.readonly', #'https://www.googleapis.com/auth/drive', #'https://www.googleapis.com/auth/drive.apps.readonly', #'https://www.googleapis.com/auth/drive.metadata.readonly', #'https://www.googleapis.com/auth/drive.file',
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # import sys import webapp2 import settings import routes from library import utils # Insert local directories into path for code_path in settings.code_paths: sys.path.insert(0, code_path) from library import users # Initialize web app with routes and handlers and jazz hands app = webapp2.WSGIApplication(debug=utils.is_local() or settings.force_dev) for route_config in routes.configs: app.router.add( webapp2.Route(route_config.route_template, handler=route_config.handler, name=route_config.name)) app.router.add( webapp2.Route(users.oauth_decorator.callback_path, handler=users.oauth_decorator.callback_handler()))
# Force dev mode even on deployed app. Should be true only when debugging. Caching and error reporting use this setting force_dev = False # App title, used for page title and social sharing title # TODO: Update this app title to reflect your own app_title = 'Not VanillAE' app_description = 'The finest web ingredients, blended into a scrumptious boilerplate for App Engine' app_keywords = 'Twitter Bootstrap, HTML5 Boilerplate, Modernizr, Font Awesome, PJAX.js, socialite.js, Sticky Footer, Jinja2, Google APIs, Google Users API, webapp2, python' app_author = 'Ash Eldritch' # URLs # TODO: Change this to reflect your local and production URLs urls = DotDict({ 'canonical': 'http://localhost:8080' if utils.is_local() else 'http://notvanillae.appspot.com', 'canonical_secure': 'http://localhost:8080' if utils.is_local() else 'https://notvanillae.appspot.com' }) # Google Data API OAuth Credentials # TODO: Update these to reflect your own scope requirements and credentials at https://code.google.com/apis/console/ oauth = DotDict({ 'client_id': 'your-client-id', 'client_secret': 'your-client-secret', 'scope': [ #'https://www.googleapis.com/auth/glass.timeline ', #'https://www.googleapis.com/auth/userinfo.profile',