-
PROGRAMS
In this tutorial, we will learn how to send emails with zip files using Python's built-in modules.
Pre-Requirements
I am assuming that you already have an SMTP (Simple Mail Transfer Protocol ) server setup if not you can use Gmail SMTP or something like …
-
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 com…
-
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…
-
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 w…
-
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.
In this article, we will…
-
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…
-
PROGRAMS
Django templates have access to a series of built-in tags and filters that don't require any setup steps such as {% if %} and {% for %}.
However, Django also allows you to create your own template tags to perform custom actions. Custom template tags come…
-
WEB DEVELOPMENT
PostgreSQL is undoubtedly one of the most popular and efficient open-source relational database management system powering millions of applications.
These days a database backup mechanism is essential for any project onboard. Luckily PostgreSQL comes wit…