- Mac tutorial for windows users pdf how to#
- Mac tutorial for windows users pdf install#
- Mac tutorial for windows users pdf full#
If you are using Python 3.4, then cd into the microblog folder and then create a virtual environment with the following command: $ python -m venv flask Let's call the application folder microblog. So, open up a terminal window, choose a location where you want your application to live and create a new folder there to contain it. As an added benefit, you won't need root access to do the installation in this way. My preferred way to do this is to create a virtual environment where everything gets installed, so that your main Python installation is not affected.
Mac tutorial for windows users pdf install#
Now we have to install Flask and several extensions that we will be using. Installing Flask Okay, let's get started! If you haven't yet, go ahead and install Python. Familiarity with Python modules and packages is also recommended. Finally, you should be somewhat comfortable writing Python code. using the command line before continuing.
Mac tutorial for windows users pdf how to#
If you don't, then I recommend that you learn how to create directories, copy files, etc.
The tutorial assumes that you are familiar with the terminal window (command prompt for Windows users) and know the basic command line file management functions of your operating system. Unless noted, the code presented in these articles has been tested against Python 2.7 and 3.4. The tutorial application should run just fine on Windows, OS X and Linux. Requirements If you have a computer that runs Python then you are probably good to go. I hope this application, when finished, will serve as a sort of template for writing other web applications. So as you see, I'm going pretty much for the whole thing. Debugging techniques for development and production servers.
Caching and other performance optimizations. Web form support, including field validation. Database management, including migration handling. User management, including managing logins, sessions, user roles, profiles and user avatars. These are some of the topics I will cover as we make progress with this project: The application The application I'm going to develop as part of this tutorial is a decently featured microblogging server that I decided to call microblog. The book and the tutorial complement each other, the book presents a more updated usage of Flask and is, in general, more advanced than the tutorial, but some topics are only covered in the tutorial. UPDATE: I have written a book titled "Flask Web Development", published in 2014 by O'Reilly Media. Of all these, the Python/Flask combination is the one that I've found to be the most flexible. In addition to Python, I've written web apps in PHP, Ruby, Smalltalk and believe it or not, also in C++. I first learned Python as part of an effort to create bindings for a C++ library at work. Part I: Hello, World! My background I'm a software engineer with double digit years of experience developing complex applications in several languages.
Mac tutorial for windows users pdf full#
Part I: Hello, World! Part II: Templates Part III: Web Forms Part IV: Database Part V: User Logins Part VI: Profile Page And Avatars Part VII: Unit Testing Part VIII: Followers, Contacts And Friends Part IX: Pagination Part X: Full Text Search Part XI: Email Support Part XII: Facelift Part XIII: Dates and Times Part XIV: I18n and L10n Part XV: Ajax Part XVI: Debugging, Testing and Profiling Part XVII: Deployment on Linux (even on the Raspberry Pi!) Part XVIII: Deployment on the Heroku Cloud Index of all the articles in the series that have been published to date: