python - App installed on OpenShift won't run after adding form -
i added form application using wtforms, , app no longer works on openshift. can run on localhost, believe error may lie in setup.py
. need change work?
from setuptools import setup setup(name='granite', version='2.0', description='personal blog', author='myname', author_email='myemail', url='mysite', install_requires=[ 'flask', 'flask-flatpages' ], )
you need add flask-wtf
install_requires
list.
setuptools
uses list install whatever packages application need run. it's important keep updated. can see packages have installed in virtualenv (you are using virtualenv right?) runnning command terminal virtualenv active:
$ pip freeze [> filename]
the part in brackets can optionally added output results file (usually called requirments.txt
). note see things in pip freeze
don't remember installing. these packages installed via requirments.txt
/setup.py
of package syou did install. off topp of head installing flask freeze should have wsgiref
, jinja2
, werkzeug
, think 1 more.
some references:
- requirements files
- pip freeze
- setuptools (for setup.py)
Comments
Post a Comment