A
A
Avrong2014-12-14 12:09:39
Django
Avrong, 2014-12-14 12:09:39

What is the philosophy of python and django?

I started learning python, django (I'm more interested in django), I looked for articles about writing a chat, everyone talks about extra. applications.
Here I am generally confused, and why I myself can’t make a chat.
I was also looking for creating a blog on django, but even there some standard django publishing functions are used and again an additional application (or module, plugin) - Disqus comments. Tell us, the composition of django, how and with what it is eaten, the main principles.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Deerenaros, 2014-12-14
@Avrong

Django is a kind of harvester, an alternative to Rails for Python. Accordingly, from his philosophies - this is simplicity and functionality, discipline and modularity, convenience and performance. Turns out it's not too bad for him. Although there are moments, not the most pleasant, let's say so.
If about Python, then such words as simplicity, conciseness, speed are not bad here. In a sense, convenience. Sometimes, although it is officially forbidden, there is such an unpleasant feature as write only, that is, the code is written easily and simply, but in a couple of years it will be very difficult to read it.
Well, then, Python is a Generic Purpose Language, that is, it is still intended for everything, and not mainly for the web. Sometimes it is visible. For example, based on it there is no normal server, there is no normal https support. And at the same time, he is one of the few (although today it is almost not the case) who does not accept cgi-bin.
By the way, I want to pay attention to such a framework as Flask. It's not very fast yet, but it's lightweight and very modular. Plus, it's easy to write on.

S
sim3x, 2014-12-14
@sim3x

searched for articles about writing a chat

Not exactly a task for django.
Django was created as a frame for an online publication. Because it is necessary to first study the standard frame use case - pages, blogs, polls, etc.
Building a chat app from 0 is a lot harder than you think
You can create a chat based on repeated ajax requests to the server - not very elegant, but acceptable for 20 users
study them
If you have little experience in development, you should focus on the basic functions of the frame, and then move on to plugins
- high-level web frame
- fast development
- cleanliness
- clear code structure
Web frame for perfectionists with deadlines!
Object-relational mapper -- database interaction
Automatic admin interface -- basic admin interface
Elegant URL design -- URL management
Template system -- extensible template language
Cache system -- flexible caching
worth starting from here
https://docs.djangoproject.com/en/1.7/intro/tutorial01/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question