Python

In this blog, we will learn about the use of the Polymorphic model of Django. Polymorphism: Polymorphism means the same function name (but different signatures) being uses for different types. Example: print(len("geeks")) output-:5 print(len([10, 20, 30])) output-:3 In the above example, len is a function that is used for different types. Polymorphic model is also based on polymorphism. I did use the polymorphic model in many projects in excellence technologies.
In this blog, we try something interesting. We can do one thing suppose we have a full working website, and we want to use website login API in our API. So for this, we use python library requests, and we will see how this works. So Let’s start. Problem: So the problem is at this stage we don’t know where we will get API URL, we don’t know which URL will work for login.

Scrapy Settings:

If you’re looking to uniquely customize your scraper, then you’ll want to learn the tips and tricks of how to do this without a hassle. Using Scrapy settings, you can conveniently customize the crawling settings of your crawler. That’s not all, scrapy also allow you to customize other items like core mechanism, pipelines, and spiders. You’ll typically find a settings.py file in your project directory that allows you to easily customize your scraper’s settings.

Custom commands or what many have come to know as management commands or utility commands are one of the essential features that are provided by python frameworks. These commands are quite useful when performing tasks that requires a lot of different methods to complete the task.

Concurrency in Python is no doubt a complex topic and one that is hard to understand. More so, it also doesn’t help that there are multiple ways to produce concurrent programs. For a lot of people, they have to deal with lots of thoughts including asking questions like,
Should I spin up multiple threads?
Use multiple processes?
Use asynchronous programming?
Here is the thing, you should use async IO when you can and use threading when you must.

so in this blog we will see how to implement fcm or Firebase Cloud Messaging services.

Till now we are seen basics of models, views, serializes everything. But the most important aspect of any project is the database operations.

In this blog post we will some db operations which were used a in a live project and get more in-depth knowledge of things.

This is one the exciting features of DRF let’s see what it is.

In this blog post we will see more details on View Class and also router.

Let’s get started with django rest api framework as we saw in the last blog.

In this post we will mainly see about django model and database operations

Introduction: Requests is a Python module that you can use to send all kinds of HTTP requests. It is an easy-to-use library with a lot of features ranging from passing parameters in URLs to sending custom headers and SSL Verification. we can use requests library very easily like this. import requests req = requests.get('https://www.excellencetechnologies.in/') Now let’s install the requests library. How to Install Requests: You can make use of pip, easy_install, or tarball package managers.

Introduction:

The ability to send emails to either the users of your application or to yourself is a very nice feature to have in your web application. This blog post will demonstrate how to incorporate the sending of emails to users when they create a new account. how to confirm users’ email address.

In this blog post we will see how to deploy your python web app on any dedicated server like VPS, Amazon EC2, Google Cloud GCP etc basically any server where you have shell access and root access.

Till now in our previous blog posts we have developed our flask application, lets now see how we can deploy it to a server.

Application factory is a pattern in flask and used most of the times when we split our code based into difference files.

In the previous blog post we slow how to simply split our code, in this post we will take it further and see what is best recommended way of doing it and why.

excellence-social-linkdin
excellence-social-facebook
excellence-social-instagram
excellence-social-skype