From 4d716070984dc46b7fe321519ce6f784504296ea Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 14 Nov 2018 08:57:20 -0600 Subject: [PATCH] More documentation on configuration by python code --- README.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index f6d3099..c573c59 100644 --- a/README.rst +++ b/README.rst @@ -41,11 +41,14 @@ discovering and reporting as many errors as is possible per bulk interaction with the database. -Usage ------ +Configuration By Python Code +---------------------------- -To use pgwui_common configure your pyramid app by putting the -following into your package's __init__.py:: +If you are writing a complete Pyramid application, or simply want full +control over configuration you will need to make a Python +distribution. (Something to be installed, perhaps with ``pip``.) +In this case use pgwui_common to configure your pyramid app by putting +the following into your package's __init__.py:: from pyramid.config import Configurator @@ -55,7 +58,9 @@ following into your package's __init__.py:: Note that you can override any of the assets in this package or any of the PGWUI packages, any of the templates or css, using Pyramid's Asset -Override API (or via pyramid.includes = yourextension in the .ini file). +Override API. See: +`https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/assets.html#overriding-assets +`_ Development Status -- 2.34.1