Why is Python?
Do not do the process of work for a long time, when the business becomes a job more and more discover the precious. Time so little, the demand is indeed diverse, software, web, but also cross-platform, formerly familiar. NET is obvious to every satisfaction. Choose to choose or Python suitable for the present scene, the language is quick to get started, the framework of love rich, cross-platform is not a problem, just a few reference projects also have a lot of python implementation of the part, the only drawback is to start from scratch.
Why the flask?
Like C #, the Web framework determines the speed and flexibility behind the development, so deliberately spend time comparing the frameworks. Do not need the best, only need the most suitable for their own. This framework is micro, performance is not the first and very good, more important is a rich and stable plug-ins, although not found a few success stories, a little depressed.
Why is Jade?
Razor used, turn jade than jinja more suitable for me, in my bones is also a literary and artistic.
To start the installation (VS2013UP4):
- Choose New Project, select Python in other languages, default is no template, select Pull template, will automatically jump to download, install and close vs;
- Once reopened, a new Python application should be ready to run;
- Python's path can be added to the system's path variable, so that Python commands can be invoked directly in the console (for example: "C:\PYTHON33; C:\Python33\Scripts ");
- New Python Flask/jade project, vs said will automatically install the package, but do not know why the last show is not found Flask package, alas vs has a problem is not two days a day;
- If you do not have the previous article I encountered the problem can be transferred to??? , otherwise you will need to install the package manually, Python has a very powerful package manager, here we use PIP, download the file, and in the administrator's role in the console to execute this file: Python get-pip.py;
- Continue installing Flask, perform PIP installation command: Pip install Flask;
- Continue to install Jade, execute PIP installation command: Pip install jade;
- Re-run the new website, should be able to open the browser under the smooth;
VisualStudio2013 installation of Python Flask/jade