title: flask production and development mode
body: <p>I have developed an application with flask, and I want to publish it for production, but I do not know how to make a separation between the production and development environment (database and code), have you documents to help me or  code.
  I specify in the config.py file the two environment but I do not know how to do with.</p>
  
  <pre><code>class DevelopmentConfig(Config):
      """
      Development configurations
      """
      DEBUG = True
      SQLALCHEMY_ECHO = True
      ASSETS_DEBUG = True
      DATABASE = 'teamprojet_db'
      print('THIS APP IS IN DEBUG MODE. YOU SHOULD NOT SEE THIS IN PRODUCTION.')
  
  
  class ProductionConfig(Config):
      """
      Production configurations
      """
      DEBUG = False
      DATABASE = 'teamprojet_prod_db'
  </code></pre>