Blog

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 Views.py. 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 (models.py)

Leave a Reply

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