Changes between Version 10 and Version 11 of UoL LAMP HowTo Install Python Flask Applications


Ignore:
Timestamp:
10/10/18 14:55:16 (6 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UoL LAMP HowTo Install Python Flask Applications

    v10 v11  
    115115- [[Python Flask Gotchas Import Database Module Fails]]
    116116
     117
     118
    117119== Python 3
    118120
     
    159161DirectoryIndex index.html
    160162
    161 ### 'Main' server configuration #############################################
    162 <Directory {{{path to application folder}}}>
    163     SetEnv FLASK_SECRET_KEY {{{Some Secret Key}}}
    164     SetEnv ENV1 env1_value
    165     SetEnv ENV2 env2_value
    166     SetEnv ENV3 env3_value
    167     WSGIProcessGroup application
    168     WSGIApplicationGroup %{GLOBAL}
    169     Order allow,deny
    170     Allow from all
    171 </Directory>
    172 
    173163WSGIDaemonProcess application user=wwwrun threads=5 python-path=/local/venv/lib/python3.5/site-packages home={{{path to application folder}}}
    174164WSGIScriptAlias / {{{path to application}}}
     
    176166}}}
    177167
    178     Change the values of:
    179      - {{{Some Secret Key}}} to be somethin' secret
    180      - {{{path to application folder}}} to be the application folder
    181      - {{{path to application}}} to be the path to the actual application
    182 
    183     And changing ENV1, 2 & 3 to be appropriate environment values.
    184168
    1851693. Edit the Apache modules conf: