sampleapp/sampleapp/views.py
author David Douard <david.douard@logilab.fr>
Thu, 24 Mar 2016 12:08:59 +0100
changeset 11613 08afd21f17f6
parent 11483 7b7ed56bf2fb
permissions -rw-r--r--
Added tag 0.6.0, debian/0.6.0-1 for changeset 94d1a024b3bf
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'}