It’s definitely a common mistake for people using WTForms. When you create a form and use something like datetime.date.today() as a default value, that value will always stay the same. The fix is to use “datetime.date.today” instead of datetime.date.today().
While using Dokku, I was getting the following error message: Requested runtime (python-2.7.8) is not available for this stack (cedar-14).
This was due to a connection error between my docker container and the internet. To determine this, I ran “docker images” and got the image id of “progrium/buildstep”, then got into a container with the following command: sudo docker run -t -i <your image id> /bin/bash
I had to change the buildstep image’s docker file to add my proxy. This is because the buildstep image required a proxy before the build to download the python buildpack.
I’m behind a proxy, so I was getting this error when I ran “sudo make build”:
Cloning into ‘heroku-buildpack-multi’… fatal: unable to access ‘https://github.com/ddollar/heroku-buildpack-multi.git/’: Failed to connect to github.com port 443: Connection timed out
The solution? Replace the Dockerfile in the root of the folder you git cloned with this:
Timeout: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x27330d0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')
If you’re installing several requirements from a requirements.txt file, it helps to use -v after your pip install command to figure out which module has the timeout. Most likely, it’s trying to download a module from a URL that doesn’t exist.
Flask-Admin’s filters handled equals, greater-than, contains, and the like, but not “is this one of these values” or “is this empty”. I added both.
The “in list” and “not in list” filters use Select2’s tag input, so you type several values and it filters with OR. The “empty” filter matches NULL or not-NULL. That was #711 on the SQLAlchemy backend. The same change let filters that already have predefined options skip setting the select2 data type explicitly, and pulled in select2-bootstrap-css so the dropdowns stopped looking broken on Bootstrap 3.
Then I added the empty, between, and list filters (with tests) to the mongoengine and peewee backends (#717), so all three ORMs behave the same. A couple of small fixes followed for non-integer filter values (#718) and “in list” integer validation (#719).