Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For what purpose Django is used for? [closed]

Tags:

python

django

I heard a lot of people talking about Django on various forums. But I am having a very basic question : What is meant by Framework and why Django is used.

After listening a lot about Django, I ran few chapters for Django (from Djangobook.com). After running these chapters, I am wondering how Django can be used to create a very simple website. (Website should have few pages like Home, Favorites, About, Contact linked to each other and will be providing static content).

Can Django be used for creation of such website? I searched a lot on internet but couldn't find any relevant examples, I only encountered with the examples for creation of blog, forum sites etc. If Django can be used for creation of this website, what should be the approach.

Can someone please explain this basic term "Framework" and its significance?

like image 209
sarbjit Avatar asked Oct 09 '12 10:10

sarbjit


People also ask

For what purpose Django is used?

What is Django? Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. Built by experienced developers, Django takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel.

What is Django used for frontend or backend?

“The technically correct answer,” Willison told me when I asked him about this, “is that a backend framework like Django works with any frontend framework, because of separation of concerns: if a web framework can respond to HTTP requests with JSON and HTML, it can be used with anything.”

Why Django is used in backend?

Among the major benefits of using Django for back-end web development is its Representational State Transfer (REST) framework, which is a popular toolkit for building APIs. The power of Django's REST framework can be assessed from the fact that it takes just three lines of code to build a ready-to-use API.


3 Answers

No. It's not for making websites. Your sample just sounds like you want plain old HTML.

Django is for creating web applications. That is, software, normally backed by a database, that includes some kind of interactivity, that operates through a browser. A Framework provides a structure and common methods for making this kind of software.

like image 177
Joe Avatar answered Sep 25 '22 10:09

Joe


I think what you're looking for is a very simple CMS (Content Management System), there are many of those available in all kinds of languages/frameworks. Django has django-cms and mezzanine (among others).

What django is really awesome at is building dynamic websites really fast, you don't need to worry about most things, you just define your data model and off you go (almost). If you want to have a better insight into what's possible, have a look at the django tutorial (under "First Steps"), it gives you a good introduction to django and how to build websites using it.

like image 40
mclemme Avatar answered Sep 23 '22 10:09

mclemme


Django can be used to create dynamic high-security web applications. For creating a static website like the one you asked, HTML is enough.

Tutorial for creating a django application can be found here.

like image 22
arulmr Avatar answered Sep 24 '22 10:09

arulmr