
    _jZ                         d Z ddlZddlmZ  e       Zej
                  j                  dd      j                  d      Zerej                  Z
d Zee_	        yy)u  
WSGI entry point — Apache mod_wsgi deployment.

Usage:
  Apache config:
    WSGIDaemonProcess financials python-home=/var/www/html/financials/.venv
    WSGIScriptAlias / /var/www/html/financials/wsgi.py

  Local development (preferred):
    export FLASK_APP=wsgi.py FLASK_DEBUG=1
    export DATABASE_URL=sqlite:///financials.db
    flask run

  Behind a reverse proxy at a sub-path (e.g. Apache proxying /financials → :5000):
    export URL_PREFIX=/financials
    flask run
    N)
create_app
URL_PREFIX /c                 ,    t         | d<   t        | |      S )NSCRIPT_NAME)_prefix_inner)environstart_responses      /var/www/html/financials/wsgi.py_script_name_wsgir      s    !(g~..    )__doc__osappr   applicationr   getrstripr	   wsgi_appr
   r    r   r   <module>r      s\   " 
 l **..r
*
1
1#
6
!!F/ -K r   