title: ImportError: No module when running uwsgi
body: <p>I can run the server in flask development mode correctly.</p>
  
  <p>I think I missing some params to run the <strong>uwsgi</strong> server so that got the error message.</p>
  
  <h1>run <strong>uwsgi</strong> command</h1>
  
  <pre><code>uwsgi --socket 127.0.0.1:4245 --module web --callable app --processes 4 --threads 2
  </code></pre>
  
  <h1>Error log</h1>
  
  <pre><code>*** Operational MODE: preforking+threaded ***
  Traceback (most recent call last):
    File "./web.py", line 19, in &lt;module&gt;
      from model.release_schedule import ReleaseSchedule
  ImportError: No module named model.release_schedule
  </code></pre>
  
  <h1>web.py</h1>
  
  <pre><code>#!/usr/bin/env python3
  # -*- coding: utf8 -*-
  from flask import request, url_for
  from flask import Flask, request, jsonify
  from flask_request_params import bind_request_params
  from flask import g
  import datetime
  import pandas as pd
  import pymongo
  import json
  from webargs import Arg
  from webargs.flaskparser import use_args, use_kwargs
  import yaml
  import time, functools
  from pdb import set_trace
  from pandas_helper import PandasHelper
  import errors
  from app_helper import *
  from model.release_schedule import ReleaseSchedule
  from model.history import History
  from model.report_type_symbol import ReportTypeSymbol
  from model.weekly_history import WeeklyHistory
  from mongo import Mongo
  
  # load config file
  APP_CFG = yaml.load(open("app.yml", "r"))
  MSG = yaml.load(open("message.yaml", "r"))
  </code></pre>
  
  <p><img src="https://i.imgur.com/oiSALD2.png" alt="">    </p>