sampleapp/sampleapp/views.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 30 Jun 2015 11:15:54 +0200
changeset 11578 fcba04437236
parent 11483 7b7ed56bf2fb
permissions -rw-r--r--
[bwcompat] use cubicweb error views (closes #4545130)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11483
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
from pyramid.view import view_config
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
@view_config(route_name='home', renderer='templates/mytemplate.pt')
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
def my_view(request):
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     6
    return {'project': 'sampleapp'}