In this article we will teach you to write the views in django.Views are the heart of the Django applications. They are responsible for the HTTP requests and HTTP responses. In between they perform some activities like database operations, rendering HTML templates, etc..

Views are generally stored in In example we will simply return string.

def index(request):
    return render_to_response('index.html', {
        'message':"Simple welcome message from global bridge blog",

Next >> Django Tutorial : Creating Django Models (

Leave a Reply

Your email address will not be published. Required fields are marked *