Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
in Web-Development by
recategorized by | 2,078 views

3 Answers

1 like 0 dislike

Yes, Django is designed to build dynamic (interactive web sites which can perform computations as well as add data) websites using Python programming language.

It has all that's required , tools, libraries, templates etc. 

It builds web apps based on MVT (model view template) web architecture.



0 0
Hello Sir , you can also register your account so you get contribution of answering questions and various rewards that a top user can get.
0 like 0 dislike
Nice tutorials on how to create a dynamic-website using Python : 1)

If you decided to learn Python, please forget about web development for a while and concentrate in learning the language first.
Python is easy to pick up, but you must stand on your feet before you start to run.

Python is an easy, flexible and powerful general purpose programming language (which is specially suited for web development), but you should bear in mind that in order to become a web developer you must learn several different skills besides python.

The first basic skill you must learn is HTML.
HTML is the markup language of the web. All web pages are created with HTML, which defines the different elements contained in a web page.
Then you should learn CSS, which is another little language that defines the way each HTML element looks within a page (its color, the font type, its position on the page, etc).
And the third skill you should master to become a complete web developer is javascript.
Javascript is a scripting language, just as python, but it runs within the browser.
It is a fundamental part of HTML5 (the newest incarnation of the HTML , which powers all the new applications being written for the web and mobile phones and tablets (iphone, ipad, blackberry, etc...).

HTML + CSS + JAVASCRIPT are different parts of the whole HTML5 platform, and they all work in tandem to create a full web application.

Where does Python fit in?
Although you can create a full web application with just HTML, CSS and javascript, chances are that your application will need to access data stored in a server, most likely a database.
That means that you will have to write code that will be run in a remote server rather than in the browser.

The server side is different than the browser (or client side). In the client side you only have one option: javascript.
On the other hand, you can use any imaginable language on the server side.
People use php, java, ruby, python, c#, etc...

Python will let you talk to the database or datastore, perform queries, retrieve information and format the output to your web page.

Is it possible to forget about javascript and write your whole application in python?
Yes, and many web sites work this way. But you would be limiting yourself (and your website usability).

Think about it:
Code written in javascript runs in your browser (it doesn't need to communicate with a distant server and wait for the response) hence, its faster, and the user experience is better. That's why the new HTML5 web applications feel more and more like desktop applications.
Applications written entirely in javascript that talk directly to the database are known as Ajax applications.

But code written on the server side may give you more security and scalability, so both sides should be mastered to become a competent web developer.

As for web development frameworks:
Again, please first stand on your feet... When you reach the moment where you find yourself needing a framework, you will probably find out that you can get by with a simpler solution rather than Django.
Django lets you create the whole structure of your website on the server side.

My advice: Forget about all these things, get a good python tutorial and learn it (and enjoy it!) before looking at all the other technologies you will need.
edited by
0 like 0 dislike

Python is a high level, general purpose programming language. What this means is that you can use it to code up anything from a simple game to a website supporting millions of users per month.

Django is a Python web framework. It is free and open source and has been around since 2005. It is very mature and comes with excellent documentation and awesome features included by default. Some excellent tools it provides are:

  1. Excellent lightweight server for development and testing.
  2. Good templating language.
  3. Security features like CSRF included right out of the box.

Django operates on the concept of apps. An app is a self contained unit of code which can be executed on its own. An app can do many things such as serve a webpage on the browser or handle user authentication or anything else you can think of. Django comes with some default apps pre-installed such as the authentication and session manager apps.

You can use those two to create a dynamic website.