Changes between Version 1 and Version 2 of ApplicationConfiguration


Ignore:
Timestamp:
10/17/2011 03:00:06 PM (6 years ago)
Author:
apoirier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ApplicationConfiguration

    v1 v2  
    1515 
    1616    <NAGARE_HOME>/bin/nagare-admin serve /path/to/the/config.cfg 
    17    
     17 
    1818Or, if the application was registered to the framework 
    1919(as described in :wiki:`EntryPoints`), then you can launch it with: 
    2020 
    2121  .. code-block:: sh 
    22    
     22 
    2323    <NAGARE_HOME>/bin/nagare-admin serve <application> 
    2424 
     
    3232  file is immediatly reflected. Else, you need to stop then re-launch the 
    3333  application. 
    34    
     34 
    3535Structure 
    3636--------- 
     
    6262                                                 always generated 
    6363debug               No        no                 Display the web debug page when an exception 
    64                                                  occurs. The ``nagare[debug]`` extra must be installed.  
     64                                                 occurs. The ``nagare[debug]`` extra must be installed. 
    6565=================== ========= ================== ================================================ 
    6666 
     
    7474                                                 the following parameters 
    7575uri                 Yes       *No default value* URI or connection string to the database, 
    76                                                  as described in http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_establishing 
     76                                                 as described in http://www.sqlalchemy.org/docs/core/engines.html#supported-databases 
    7777metadata            Yes       *No default value* Reference to the SQLAlchemy metadata object 
    7878                                                 (see :wiki:`ObjectReferences`) 
     
    8080                                                 after the table creation to populate them 
    8181                                                 with some initial data (see :wiki:`ObjectReferences`) 
    82 debug               No        off                Display the generated SQL requests  
     82debug               No        off                Display the generated SQL requests 
    8383=================== ========= ================== ================================================ 
    8484 
    8585All other parameters, if present, are passed as keywords to the SQLALchemy 
    86 ``create_engine()`` call (see http://www.sqlalchemy.org/docs/04/dbengine.html#dbengine_options) 
     86``create_engine()`` call (see http://www.sqlalchemy.org/docs/core/engines.html#engine-creation-api) 
    8787 
    8888If an application needs to work with several database, several subsections can 
     
    9090 
    9191  .. code-block:: txt 
    92    
     92 
    9393    [database] 
    94      
     94 
    9595    [[database1]]      # The name of a subsection is irrelevant but must be unique 
    9696    activated = on 
    9797    uri = ... 
    9898    metadata = ... 
    99      
     99 
    100100    [[database2]] 
    101101    activated = on