Impressions of touching Django

Overview

I heard that it is popular these days and tried to touch the Python framework "Django". How to read it? Dojango? I thought, but it seems that jungle is fine. I haven't touched on it so much yet, but I thought it was a good feeling, so I will write a very appropriate impression.

How did you touch Django?

I usually use C / C ++ for game development. I was thinking about making it on my own homepage, so I was busy with PHP, which I used to do in the past.

I didn't need CakePHP or anything like that, and I was making my own MVC. It's very difficult to do PHP probably because I've been doing a typed language in C / C ++ all the time It used to be PHPer. .. ..

Inconsistency in standard function names and argument sequences Difficulty writing arrays and redundancy of selector Difficult to handle null, 0, empty string, bool values etc...

Although it is called LL language, there are many things to do in vain! !! !! Even though it is a language without a type, I feel the end of the story when I am made aware of the type as it is! The syntax is not good! !!

That's why I wonder if there is an LL language that can go faster. Let's follow the trend in the framework too I thought, I tried Django. Yes, I have been complaining for a long time, but I have an impression.

Django environment construction

Basically it was command-based, but I was able to go smoothly without any trouble. Since it works in a virtual environment, it seems easy to manage each project.

The most withering in environment construction is the occult phenomenon that an error occurs even if you proceed according to the manual. This time, no occult occurred. It is wonderful.

coding

First of all, Python is relatively easy to write. Syntax is simple and versatile, arrays can be written in [], and I thought it would be easier to get used to the lack of semicolons. Is this just like an LL language? It's easier to write than PHP.

Form and value check

I tried using a Django form. Once you've created a form class, it's easy to check data and create form tags. I was impressed.

About IDE

I tried using VS Code, but the intellisense is not good enough. After all there is no choice but to use PyCharm (paid). .. .. When it comes to Django's intellisense, is it about Eclipse or PyCharm? I don't like Eclipse so I haven't tried it, but for now it seems that a free IDE is not good. If anyone knows, please let me know.

Summary

I haven't done DB operations yet, and basic routing I have just dealt with the CV level in the MVC model. It's a pretty good impression.

Super easy to call! Well, that's about the time when the framework was introduced, isn't it? In fact, if you start doing elaborate things, you may hit a wall or find it difficult to use.

I haven't touched that much yet It seems to be quite popular and I would like to touch it more.

Recommended Posts

Impressions of touching Django
(Minimal) usage of django logger
Prevent double launch of django commands
[Django] Memorandum of environment construction procedure
Implementation of login function in Django
Django
A series of amateur infrastructure engineers touching Django with Docker ③: Django admin
Impressions of touching Dash, a data visualization tool made by python
Basics of touching MongoDB with MongoEngine
The meaning of ".object" in Django
A series of amateur infrastructure engineers touching Django with Docker (2): Creating a model
Consider the description of Dockerfile (Django + MySQL②)
I tried the asynchronous server of Django 3.0
Answers and impressions of 100 language processing knocks-Part 1
Summary of frequently used commands of django (beginner)
Understand the benefits of the Django Rest Framework
Answers and impressions of 100 language processing knocks-Part 2
Impressions of using Flask for a month
Hello world instead of localhost in Django
Consider the description of docker-compose.yml (Django + MySQL ③)
A series of amateur infrastructure engineers touching Django with Docker ⑤: View, Template, CSS