diff options
| author | Chris McDonough <chrism@plope.com> | 2011-12-05 00:12:38 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-12-05 00:12:38 -0500 |
| commit | 8fe02156794c2cac0cbc6961332f9d8bebc1cb90 (patch) | |
| tree | ba536c4442a2d97eded4717ae7828c2dc8c7d611 /docs/narr/MyProject/myproject/__init__.py | |
| parent | 5d462f0c660f939c773862b0fab81728c9ba62c7 (diff) | |
| download | pyramid-8fe02156794c2cac0cbc6961332f9d8bebc1cb90.tar.gz pyramid-8fe02156794c2cac0cbc6961332f9d8bebc1cb90.tar.bz2 pyramid-8fe02156794c2cac0cbc6961332f9d8bebc1cb90.zip | |
the starter scaffold now uses url dispatch; add a minimal section about using another WSGI server; random docs fixes
Diffstat (limited to 'docs/narr/MyProject/myproject/__init__.py')
| -rw-r--r-- | docs/narr/MyProject/myproject/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/MyProject/myproject/__init__.py b/docs/narr/MyProject/myproject/__init__.py index ddcdd7162..31b02cf02 100644 --- a/docs/narr/MyProject/myproject/__init__.py +++ b/docs/narr/MyProject/myproject/__init__.py @@ -1,10 +1,10 @@ from pyramid.config import Configurator -from .resources import Root def main(global_config, **settings): """ This function returns a Pyramid WSGI application. """ - config = Configurator(root_factory=Root, settings=settings) + config = Configurator(settings=settings) config.add_static_view('static', 'static', cache_max_age=3600) + config.add_route('home', '/') config.scan() return config.make_wsgi_app() |
