A sitemap is a file where we provide information about the web pages and other files of our site. Search engines like Google, Bing etc. read this file to more intelligently crawl our site.
It is a XML file that holds complete list of page URLs for a site along with other additional details (metadata of each URLs, when it was last updated etc.). It 's primary purpose is to inform search engines about pages on your sites that are available for crawling.
Sitemap is very helpful to increase your website' s rank on google.
Today i will show you that how can you create a xml sitemap of your django website easily. If you are using django for web development then you don't require any 3rd party tool to generate a sitemap for your website. It' s a super easy task to make a sitemap in django. I will keep the things as simple as possible and explain the whole procedure step by step.
In this era everyone expect great performance from his/her machine (i.e laptop or PC). You may heard about different types of SSD memories. Yes, you are on right way if you have decided to purchase a SSD to enhance your laptop/PC performance /speed. There are mainly 2 types of M.2 SSDs PCIe i.e "SATA" & "NVMe" ( catagorize on the basis of B & M keys).
This is the main point of this tutorial. Some people don't know which M.2 SSD is supported by their machine's hardware. You may find several youtube videos or blogs about these SSDs, but many of them only discuss about the types of M.2 SSDs. No one is talking about how to check whether your Laptop/PC supports NVMe or SATA.
I will keep the things as simple as possible & try to explain the whole method to check whether your laptop/PC supports NVMe or SATA.
Images are the stuff which makes a webpage heavy . One should always try to keep the images optimized for a good pagespeed index. You may find several different ways on internet to compress the image size before saving to database. Some developers uses very complicated ways for solving this issue.
Today i will provide 2 easiest solutions for this problem.
NOTE : In python, the name you use to install something e.g. from open-cv, using pip, is not necessarily the same as the name you use to import it.
Pillow is one such case, you use pip install pillow for installing package but you use import PIL . That's because Pillow is just a repackaged, updated version of PIL, the original maintainers of the PIL stopped working on it a long time ago. PIL hasn't updated since 2009
Always remember that the files (eg. images etc.) that we upload through forms (i.e through POST request) are accessed by request.FILES method. On the other hand the other parameters are accessed by using request.POST method in views.py functions.
The MultiValueDictKeyError is the basic and most common error which pop-ups when a beginner django developer starts using forms to upload data. I will keep the things as simple as possible (as i always do) and try to explain that how can you fix the MultiValueDictKeyError exception in django.
Some recent posts
Complete process of changing database from SQLite to MySQL - How to migrat...
" How to download a file in django | Making a large file downloadable from ...
How to use proxy in python requests | http & https proxies - Scraping...
Top Django Querysets, How to filter records | Fetching data from database e...
How to change base url or domain in sitemap - Django ...
How to Make a Website - Everything you should know about web development...
Top 5 Interview Questions : Tips for HR round ...
How to get job in IT : Perfect resume guide for IT job ...
Programming vs coding | difference between programming and coding ...
Popular PostsHow to compress image before saving to DB
Migrating from SQLite to MySQL in Django
Choosing correct M.2 SSD
How to deploy a web app on pythonanywhere
5 Steps to create sitemap in Django
How to send mails automatically in Django
Handling arguments in django urls
Media and Static configuration in Django
Language Translation & detection using python
React Js vs Angular Js
5 Tips to improve Programming Logics