Ejemplo n.º 1
0
import os
import logging

from google.appengine.ext import webapp

import settings
import models
import rest
import includes
import applications

from rest.views import PageHandler
from rest.views import AdminPageHandler


models.init()


paths = [
    ('/', PageHandler.params('index.html', app='main')),
    ('/todos', PageHandler.params('todos.html', app='todos')),
    ('/canvas', PageHandler.params('canvas.html', app='canvas')),
    ('/admin', AdminPageHandler.params('admin.html', app='admin')),
    ]

paths.extend(includes.App.get_paths())
paths.extend(rest.get_paths())

app = webapp.WSGIApplication(paths, debug=settings.DEBUG)
Ejemplo n.º 2
0
import os
import logging

from google.appengine.ext import webapp

import settings
import models
import rest

from rest.views import PageHandler


models.init()

paths = [
    ('/', PageHandler.params('index.html')),
    ('/todo', PageHandler.params('todo.html')),
    ('/canvas', PageHandler.params('canvas.html')),
    ]

paths.extend(rest.get_paths())

app = webapp.WSGIApplication(paths, debug=settings.DEBUG)
Ejemplo n.º 3
0
import os
import logging

from google.appengine.ext import webapp

import settings
import models
import rest

from rest.views import PageHandler

models.init()

paths = [
    ('/', PageHandler.params('index.html')),
    ('/todo', PageHandler.params('todo.html')),
    ('/canvas', PageHandler.params('canvas.html')),
]

paths.extend(rest.get_paths())

app = webapp.WSGIApplication(paths, debug=settings.DEBUG)