python ez_setup.py install via Setting up Python and Easy_Install on Windows 7.
Tag: python
Python/Flask Part-2. Rendering template through URL
Hi Everyone I hope you know the basics of how to install flask and start a project. Else you can refer the below link https://binaykumarray.wordpress.com/2014/09/18/python-flask-part-1-micro-web-framework/ Ok lets move on to the next step. Go inside the the flaskapp.py file and make the following changes. # Import blocks to import views which will # be called … Continue reading Python/Flask Part-2. Rendering template through URL
Python/Flask Part-1. (Python micro web-framework)
Flask is python based Micro-framework used for smaller application. I am considering that you are using an unix based system that comes with python pre-installed and virtual environment package installed in the system. Installation: Installing Flask is very simple. In the terminal type: pip install Flask==dev Activate the virtual environment and create the folder structure … Continue reading Python/Flask Part-1. (Python micro web-framework)
Django-ajax form submission using jquery.
This approach uses jquery-ajax to submit the form and get the response from the backend without reloading the page on submission of the form. The models, froms, views, html and javascript is explained below. models.py class Employee(models.Model): # Primary key emp_id = models.AutoField(primary_key=True) # Employee name upto 50 char emp_name = models.CharField(max_length=50) # Employee age … Continue reading Django-ajax form submission using jquery.