-
PYTHON
Generators are iterators, a kind of iterable you can only iterate over once.So what are iterators anyway?An iterator is an object that can be iterated (looped) upon. It is used to abstract a container of data to make it behave like an iterable object. So…
-
PROGRAMS
Sending emails with attachments is a common task in many applications. It allows you to share data and documents easily. In this article, we'll explore how to send emails with CSV file attachments using Python.In this tutorial, we will learn how to send …
-
PROGRAMS
In this tutorial, we will learn how to send emails with zip files using Python's built-in modules.Pre-RequirementsI am assuming that you already have an SMTP (Simple Mail Transfer Protocol ) server setup if not you can use Gmail SMTP or something like ma…
-
PYTHON
Python provides a built-in @property decorator which makes usage of getter and setters much easier in Object-Oriented Programming.Properties are useful because they allow us to handle both setting and getting values in a programmatic way but still allow …
-
PYTHON
For beginners who are learning object-oriented programming in Python, it is very essential to have a good grasp over class method and static method for writing more optimized and reusable code.Also, it is very common for even experienced programmers comi…
-
PYTHON
In programming, a callable is something that can be called.In Python, a callable is anything that can be called, using parentheses and maybe with some arguments. Functions, Generators, and Classes are inherently callable in Python.The callable() method t…
-
DJANGO
AJAX or Asynchronous JavaScript And XML is a set of web development techniques using web technologies on the client-side to create asynchronous web requests.In simpler words, AJAX allows web pages to be updated asynchronously by exchanging data with a we…
-
DJANGO
One of the most common requirement in any modern web application is the ability to take images or pictures from the users as input and save them on the server however Letting users upload files can have big security implications.Django, a powerful and po…
-
DJANGO
While working with web applications often we need to store sensitive data for authentication of different modules such as database credentials and API keys. These sensitive keys should not be hardcoded in the settings.py file instead they should be loade…
-
WEB DEVELOPMENT
Django is a high-level full-stack open-source web framework written in Python, that encourages rapid development and clean, pragmatic design. Django is the go-to framework for any project irrespective of size, from a basic blog to a full-fledged social m…