Why I Use Django to Build My Websites


Django web frawework



The Django framework is a really good web framework.

It was created in 2003, which means it has now been in development for more than 20 years, which means it has stood the test of time and is a mature framework.

So why do I use it and what do I specifically like about it?

User Accounts

Django is very good for a website that has users. It has a built-in user system, which includes user authentication.

Most sites today, whether you are talking about social member sites like facebook, shopping sites like ebay, banking sites such as TD Bank, all have users. The site operates in which users sign up and have their own accounts that they can access. Instead of doing this yourself, using a ready-made framework such as Django makes the process a lot easier.

Just to be clear, this website does not use django, as it does not have users. It is simply a tutorial site. But other websites, which I have created, do have users. Thus, I find Django to be very useful to have a user system that does user authentication for accounts such as when a user is logging into his or her account.

Django actually has a built-in user database by default. If you need, you can customize this database but it also can function just as good how it comes.

This is advantageous because so many sites today need users, so Django makes this very easy.

URL Routing

Another one of the biggest reasons I use Django is the URL routing.

These are the hyperlinks on your website that direct the user to the various pages on your website.

Django has a dynamic URL routing system, so that you don't have to hardwire the anchor links on your web page, though you can.

Instead you can create variables in place of hardcoding and these variables are what they are, variable.

They can be based on any parameter that you need them to be.

For example, the anchor tag may have the user's login name in the anchor tag, and this obviously is changes per each user.

Another example may be an anchor tag with the date, and the date changes based on the date the article being viewed was published.

This makes so many things on the website dynamic and Django masters this with URL routing that you typically set up the urls.py file within the specific app folder you are dealing with.

Django Admin

Another great feature of the Django framework is the admin.

The Django admin contains all the models (databases) on the website and allows you to view each one of them, with all the data that is in them.

This is very useful and functions as many database administration softwares. You may be familiar with phpmyAdmin. Django has its own admin that comes with it when you download django.

You can check all the databases with all the information in them, creating new rows of data, modifying existing data, or deleting data.

You can view all models, including all the users that are on your website.

This makes Django an all-in-one complete framework.

There are other features that make Django a really good framework, but these are the major reasons that I use it for many of my websites.



Related Resources




HTML Comment Box is loading comments...