github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/website/source/docs/apps/python/customization.html.md (about)

     1  ---
     2  layout: "app_python"
     3  page_title: "Customization - Python App Type"
     4  sidebar_current: "docs-python-customization"
     5  description: |-
     6    This page documents the [Customizations](/docs/appfile/customization.html)
     7    that are availabile to change the behavior of Python applications with Otto.
     8  ---
     9  
    10  # Customization
    11  
    12  This page documents the [customizations](/docs/appfile/customization.html)
    13  that are availabile to change the behavior of Python applications with Otto.
    14  
    15  Flask Example:
    16  
    17  ```
    18  customization {
    19      python_version = "2.6"
    20      python_entrypoint = "mypackage:app"
    21  }
    22  ```
    23  
    24  Django Example:
    25  
    26  ```
    27  customization {
    28      python_version = "3.4"
    29      python_entrypoint = "mypackage.wsgi:app"
    30  }
    31  ```
    32  
    33  Availabile options:
    34  
    35    * `python_version` (string) - The Python version to install for development
    36      and deployment. This defaults to 2.7.
    37    * `python_entrypoint` (string) - The WSGI entrypoint for your python application.
    38      This defaults to `APPLICATION_NAME:app`