M
M
Mark Rosenthal2015-01-08 19:23:41
Django
Mark Rosenthal, 2015-01-08 19:23:41

Why is Django so good?

Hey!
Started learning janga. The first impression is complexity.
With difficulty I installed everything from the fifth time according to some manual, I had to install a lot of dependencies, packages, utilities, but everyone praises it so much that I decided to study everything and do something useful and interesting, but so far I'm stuck on the question: what manual it is better? The official one turned out to be not entirely clear to me, just like its translation - they are complex and very boring. I don’t understand what virtual_env is, why it’s bad without it, and how it’s generally better to think about developing applications on this framework.
By the way, yes, maybe there is something easier for Python?

Answer the question

In order to leave comments, you need to log in

10 answer(s)
O
OnYourLips, 2015-01-08
@OnYourLips

The difficulty in learning is compensated by the efficiency of work. Once spent 400 hours studying (approximate figure), save thousands.
Great contribution. If only it was possible to invest money...

M
Matvey Kukuy, 2015-01-08
@Matvey-Kuk

When I started, 3 weeks was just "hurt". Set the environment "hurt", make the model "hurt", get the field from the model by foreign key... It took me 8 hours. A year ago. Everything is fast now. Much faster than without Django, so be patient, knowledge pays off =)

M
mamkaololosha, 2015-01-08
@mamkaololosha

And who told you that django from scratch would be easy? Most likely you have heard the following phrase: "Easy, I have been writing Django for 10 years. True, I only understood it a month ago." The second part of the phrase was missed by mime ears.

D
Don Kaban, 2015-01-08
@donkaban

Your approach is fundamentally wrong. There is no need to want to "do something useful and interesting" before mastering the technology at least in the rough. Well, if it's "boring" - take something more fun, hentai there or dota (they say the second is good). Both fun and helpful.
PS Read Lutz. There are two volumes, you are just about three months old. And then - maybe it will come to dzhanga. Or maybe it won't.

A
Andrey Grinevich, 2015-01-09
@Derfirm

So maybe you should take a smaller frame? Maybe look in the direction of Flask or Bottle , they are not as cool as django, but they can do a lot :)
Try it and some things will become clear, then continue :)

D
Dmitry Koldyaev, 2015-01-22
@dkoldyaev

Virtualenv (virtual environment) is an opportunity for each site to connect its own set of libraries. Pip is a python package manager that allows you to install libraries in a virtual environment.
Select the folder where your project will be located. In it, execute virtualenv -p python2.7 python
After that, you will have a python folder, in which there will be a link to the python and a folder with packages. To enable the environment in the console, you need to execute source python/bin/activate
Further in this folder, create the project folder. You already put django in it.
After that, you can install the necessary packages: pip install djangoand start the server for debugging.
There is a variable in the settings BASE_DIR- dance from it:

STATIC_ROOT = os.path.join(BASE_DIR, 'www', 'static').

I separate the templates for each app: I create a folder in the application park app_name/templates/app_nameand for the application statics. app_name/static/
I once suffered with all this. Hope these tips help. Good luck: janga is very cool!

I
Ilya, 2015-01-08
@FireGM

Django is a python framework. You should first look at at least the basics of python. I started at codeacademy.

S
Sergey Eremin, 2015-01-15
@Sergei_Erjemin

As the girls say: "The first time is not very good, but after 200 times you start to get perverted pleasure!"
The standard dock is quite sane. Just don't make senseless exercises out of it. We read the section, came up with a task for ourselves, completed it ... And so, slowly, everything is mastered. This way it will be possible to shove knowledge into the head in parts, and at each stage have a positive motivation: after all, your previous little task turned out! At the same time, you can safely master all sorts of other useful things like JQuery or PIL libraries in parallel.

K
kzlv, 2015-01-22
@kzlv

Last summer I started learning python in conjunction with django to make a couple of projects purely for myself - a task manager, a note service, a blog and all that.
Before that, I tried to master PHP and Node.js, but it didn’t go beyond video courses: it seems that with a plural site / code academy you solve their abstract useless tasks, but when it comes to a real task, you just don’t know how to approach.
Python was advised by a pkhpshnik with the wording "If you want a quick result, take djanga and python". I took it. It's true, I regret that I didn't start with them sooner.
Since I understood something in programming itself, I mainly learned syntax from Python (the dock helped, and this ), and from Junga, without even watching a third of the video, I went to the site to read themown tutorials . I didn’t suffer at all, I made a primitive working version of the task manager in 5-6 evenings, although I touched the jung for the first time. I’m looking at that code now, my eyes hurt, but if you want to solve your specific tasks, then this is a great option.

C
Cyrus, 2015-01-09
@Novakuz

I once also suffered from such a question, but I liked the "zen" (import this) of the python, so for me after that there were no questions left about what I want. Honestly, I'm not a programmer, but now I want to become one and write all sorts of Wishlist from the company where I work, from simple scripts to django projects. I started reading Lutz, and at the same time I am doing one project for a company on django, and I am learning the basics of python and django, respectively.
So, the choice is yours.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question