--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/{{cookiecutter.project_slug}}/{{cookiecutter.webapp_name}}/__init__.py Fri Jun 02 15:07:36 2017 +0200
@@ -0,0 +1,34 @@
+#
+# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+# import standard packages
+
+# import interfaces
+
+# import packages
+from pyramid.config import Configurator
+from zope.component import getGlobalSiteManager
+
+from pyams_utils.registry import set_local_registry
+
+
+def main(global_config, **settings):
+ """ This function returns a Pyramid WSGI application.
+ """
+ registry = getGlobalSiteManager()
+ set_local_registry(registry)
+
+ config = Configurator(registry=registry)
+ config.setup_registry(settings=settings)
+
+ config.scan()
+ return config.make_wsgi_app()