Tag: python

  • Basic Django Database Queries

    Basic Django Database Queries

    In this article, we will take a look at basic Django database queries, throughout the tutorial I’ll provide you with helpful code examples that will aid your learning about basic Django database queries. Django ORM is a strong abstraction that allows you to store and retrieve data from a database without having to write your…

  • How To Reset Django Database

    How To Reset Django Database

    When working with databases, we frequently find ourselves in circumstances where we must completely reset the database. The database may have been loaded with too much useless data as a result of the addition or removal of some database tables, changes in the database design, logic and relationship concerns, or the database was populated with…

  • Top Django Interview Questions

    Top Django Interview Questions

    Top 25 Django Interview Questions A list of top frequently asked Django interview questions and answers are given below. 1) Explain Django. Django is a Python-based web application framework that is free and open source. It’s a server-side web framework for building secure and maintainable websites quickly. 2) What does Django mean? Django is named after Django…

  • How to write Pandas DataFrame to CSV File

    Pandas is a great tool for working with CSV files. I’ll show you how to write a Pandas DataFrame to a.csv file in Python in this post. To write a Pandas DataFrame to a .csv file, you need to use the to_csv() method. Writing a DataFrame to a .csv file Below is an example on how to…

  • Extremely Fast Python Web Scraping

    Extremely Fast Python Web Scraping

    A web scraper is a tool that extracts structured data from a website. Using BeautifulSoup, requests, and other Python modules, you may create an efficient web scraper. These solutions, however, are not rapid enough. In this essay, I’ll show you how to use Python to create a super fast web scraper. Don’t use BeautifulSoup4 BeautifulSoup4…

  • 10 Tips To Improve Django Website Performance

    10 Tips To Improve Django Website Performance

    After years of working with Django, I’d like to share some tools and techniques for optimising Django frameworks performance, and identify bottlenecks holding your Django application hostage. So, because performance is a hot topic, let’s talk about how to make Django run quicker and better. Deploy your app using nginx + uWsgi/gunicorn. Use a CDN…

  • Cache Django Website Using Redis

    Cache Django Website Using Redis

    The performance of your application is critical to the success of your product. The repercussions of a slow application can be measured in dollars and cents in an environment where users anticipate website response times of less than a second. Even if you aren’t selling anything, quick page loading improve the visitor experience. Everything that…

  • How To: Send Email using Python and SMTP

    How To: Send Email using Python and SMTP

    Simple Mail Transfer Protocol (SMTP) is a protocol, which handles sending e-mail and routing e-mail between mail SMTP stands for Simple Mail Transfer Protocol, and it’s an application used by mail servers to send, receive, and/or relay outgoing mail between email senders and receivers.  Python provides an smtplib module, which defines an SMTP client session object that…

  • The Ultimate Django Cheat Sheet

    The Ultimate Django Cheat Sheet

    Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. Django’s online documentation is a great source…