Let me ask you a question about the django frame

Asked 2 years ago, Updated 2 years ago, 60 views

If you use django frames based on python backend language, I heard that you can develop the web easily and quickly I've been practicing it on YouTube, and I don't know if it's because I'm a non-major So I have a question Can you explain specifically how it is used to make it easy and fast with django frame? And the package? Library? What does this mean? I heard that you borrow other codes Please explain further

django python

2022-09-22 21:37

1 Answers

Python is a programming language and one of the web frameworks that you can use in that programming language is Jango.

There are many functions of a long storage system, and first, let me explain the function of managing data (model). If you create a model called a person, and the model has values such as names, emails, etc., you can save those values in the DB and read them.

class Person(models.Model):
    name = models.CharField(max_length=50)
    email = models.EmailField()

To define a person like this and create a new person and store it in the DB Person (name="Hong Gil-dong", email="[email protected]").Save() will do.

It'll take a lot longer to sleep using Python only.In addition, because web pages are eventually drawn in HTML, the ability to manage HTML (template) and the ability to manage overall (views.py) are organized. Many other features have already been implemented.

If I exaggerate... It can be described in terms of the cooking process.

In Python, you can also add new features (packages, libraries) as a feature called pip. Recently, I had to create a video upload function on YouTube, so I installed a thing called google-api-python-client. If you use this, you don't have to create a function to upload to YouTube from the bottom, but you can just call and use it.

There is a lecture service called tryhello world. If you don't know Python, watch This lecture and learn Python first, and if you know Python, listen to Janggo lecture You'll understand better if you watch it.


2022-09-22 21:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.