Viewing posts from July, 2017
In this article, we’ll see how to perform web scraping using Python and the BeautifulSoup library.
We had a basic introduction to Django's Forms and Model forms in my previous post. We will now discuss in detail the validation of form data.
Forms are the most generic way of accepting input from the sites users. A form is a set of HTML input elements enclosed in the <form>...</form>
tags. An HTML form submits the data using either GET
or POST
HTTP methods and the data is of the form of key-value pairs. These values can be accessed from the request
object's GET/POST attributes in the view.
Django's middleware framework allows the developers to hook into the request/response processing. They allow us to alter the request/response globally on every request/response cycle. For example the AuthenticationMiddleware alters and associates the request object with a user (using sessions) for each request, which is passed on to the views.
Although a simple concept, searching is something that many of us (developers) try skimping on and hence reduce the overall quality of user experience, due to irrelevant search results and illogical search ranking.
We develop web applications to our customers using python/django/angular.
Contact us at hello@cowhite.com