Let's retrospect a little about the nature of our beloved Python language : a cross platform language.
This mean you can use Python to develop your application easily whether you're using Linux, Windows, OSX, FreeBSD etc. Although my next statement is debatable, but I strongly believe that developing a program using programming language in its original habitat is somewhat less error prone than if you try developing it in another environment that's not its original habitat.
Figure IX-1 Portofolio grid in Bio Page complete with action buttons
Before we going further on our journey of making a fully functional Bio Application, lets return to our early concept of this application : product portfolio show case. And guess what we missed. Correct. We missed the required application model for a product portfolio. If you rethink our application models until this state, we know we haven't add a portfolio model/table. This part of article series will guide you on how exactly it's done by adding
Portfolio model using SQLAlchemy
relationship field in our existing
I assess myself as no security expert, but storing a plain text password in a database is surely a bad practice. If someone (probably hacker) gain access to your database, (s)he can easily read your users password. Without any hassle. In this article I will show how you can easily utilize python
md5 package to convert our users password into MD5 string and making curious hacker not that easy in reading it.
rahasia is Indonesian word for
In adding Sign In feature for our Bio Application, I have decided one important thing : the login status or form should always available and already opened in Navbar. Because Bootstrap 3 Navbar if properly setup will always available at the top of every page, this will result in a persuasive sign in form : a kind of form that engage user to directly fill its input fields and hit Submit button! Wherever (s)he is... (More)
Welcome to the sixth instalment of this Bio Application Development Tutorial. I constructed this tutorial, in such a way that even a newcomer in Python will be able to grasp its content and follow it easily. Thanks to Python intuitive coding environment, my job is not that hard. But it is you who really decide whether my goals are met or I still have to refine how I presented ideas, instructions and concepts.
Previously, our Bio Application having its first data access capability by using a great ORM tool, SQLAlchemy. It able to construct Users tables, populate data and query those data. But it still lack an important feature : a visitor still unable to register him/herself into our application. In this article, we are going to show you how exactly it is done.
In this fifth article we are going to liven up our bio application with real data coming from the database. From our previous post, we already have a nice visual representation of our bio application. Now it is time to supply its content with user very own data. It will make your application feels so nice. Alive.
We are going to utilize SQLAlchemy to do :
A sharp eyed reader may notice, "How do you populate those data? I don't see any user signup action there!". Correct! We are going o skip those important feature for now. Here, I am going to concentrate you on the SQLAlchemy part. I think my next article will going to talk about those Signup form.
If you have followed this article until this point, it means that you really curious on how you can develop a working Python web application. Previously we have understand how to create a working (but dumb) Flask application. Today we are going to start by laying out our application user interface using a very cool front-end framework : Bootstrap.
Breaking Post? Yeah, the same like it is in Breaking News : an interesting event occur during main events...
While I work on series of articles that talk about developing Flask application on Openshift, I also in the middle of developing a C#.NET Point of Sales application for a Malaysia based company. In the process of coding its admin dashboard, I feel like wanting to use a web view for it. Traditionally, a GUI Desktop application developer like me will just drag and drop GUI element on a dashboard and then code its interaction. But as I about to doing it, an idea flashes my mind : why don't I use Bootstrap + Python for this part? I can leverage Bootstrap cool element design by simply reusing its plethora of example laying around in the web and have access to Python power to serve the dynamic content of the web. The idea seems promising...
As I write my 4th article talking about using Bootstrap 3 and Jinja for application layout and templating, I realize that in my last post, I neglect a clear and complete instructions of preparing local Python environment both for Windows and OSX users. I only focusing on Linux users (or, Ubuntu/Debian derived distro to be precise). As I use those three OSes in a VirtualBox environment, I feel like I had to write it. Let's begin with the most irritating development environment to work with : Windows.
Now that we have a clear understanding of what the application that we are going to build, we can directly start our code. I am going to use bio as the project name of our application. If you haven't create it, you can follow the first series of the article here. From inside bio folder you will find several files and folders. For starter, lets open the file setup.py and inspect its contents :
from setuptools import setup setup(name='YourAppName', version='1.0', description='OpenShift App', author='Your Name', email@example.com', url='http://www.python.org/sigs/distutils-sig/', # install_requires=['Django>=1.3'], )
If you followed this article series until now, I can safely assumed that you have already registered to Openshift and able to use RHC client tool to create a Python application there. If not, you may want to follow the first article here. In Part II of series of this article, I would like to create a solid ground understanding of what the application we built like.
Let's connect your local environment to the Openshift's cloud
After freely registering yourself to the Openshift cloud and before starting to develop your application, the next logical step is to install Openshift RHC Client Tools. This will making your life easier in creating, managing and monitoring your application in Openshift by using just a single command line action. Of course you can do it using Openshift Web Console, but a concise command line operation is actually all that you need.
If you already familiar enough with web application, I bet you know that finding a cheap (yes, cheap must come first) and reliable (then come reliability) hosting service for your PHP application is very easy. It is because PHP, or to be exact LAMP stack (Linux+Apache MySQL+PHP) is the most popular technology stack in developing web application. An annual charge for a LAMP stack is very affordable. But the same is not applied if you try to build your web application with technology stack other than LAMP, such as Ruby, Java or Python. A traditional approach to host a web application other than PHP is to have yourself a VPS account from an internet hosting provider such as DigitalOcean, which often they don't come with a free plan. In my experience, a free plan is important, as it allows you to get test your application on the internet for free. And having a VPS will require you to manage and install all your application related library, framework and application by yourself.
Part of my life mission is to teach others what I am good at. This include capoeira and coding. While the first thing is not suited to this blog, but the later is. And to try spreading coding as a cool hobby, I targeted youngsters/children around my neighbourhood. For this, I highly motivated by CoderDojo movement, with a core and simple principle : "teach youngsters/children to code with fun and free". No charge whatsoever.
Copyright(c) 2014 - PythonBlogs.com
All rights reserved