Cmder includes better command-line tab completion – normally, paths will be completed using the default Windows path separator, the backslash (“\”). But Windows has recognized the forward slash (“/”) as an optional path separator for a while now and there are instances where this might be desirable, especially if you switch between Windows and Unix-like environments (macOS, Linux) often as I do.
… Read More...
Update July 29, 2017: updated to work on Windows and simplify configuration.
For debugging pytest executions, the official VSCode Python extension documentation recommends creating an additional file in your project, e.g.:
and setting up a launcher to start the debugger against it. While this is simple, I really don’t like having to modify my project’s code or add source files just to satisfy my editor/IDE.
So, to debug pytest without having to create an additional source file, setup a launcher configuration with the “program” option pointing to the “pytest” script itself, for instance:
In my case, I have a virtual environment setup in the root of the project (.virtualenv).… Read More...
Update July 30, 2017: a new simplified method that works for both Linux/MacOS and Windows with no changes to your Flask project required.
First, be sure you have your virtual environment configured in VSCode (you are using a virtual environment, right?).… Read More...
It had been a while since I last started a Flask-based project, so I decided to have a look at what’s. new in the current release. Earlier this year, Flask and several other Python web development projects were organized under the Pallets Projects open source community and governance model. Along with the move, Flask 0.11 was released with several improvements and new features.
So what’s new? Flask 0.11.x brings several JSON-related fixes and improvements, making it easier to build apps that primarily provide RESTful JSON APIs. … Read More...
While it’s true that many open source projects consider Windows a second class citizen, the reality is that it continues to be the operating system of choice for most business environments and many developers find themselves with no alternative. But this doesn’t mean you have to settle for a poor experience.
As far as code editing goes, you won’t have a problem. Fortunately, there’s no shortage of great web editors/IDEs to choose from for Windows. Atom, SublimeText, WebStorm and others both free and non are all great choices each with their own pros and cons.… Read More...