Django Web Development

Asked 2 years ago, Updated 2 years ago, 51 views

I've built a server, but I've never built one with the web. Previously, when you created a server, you created a code with PyCharm and Eclipse in the console window I made it run, but I'm going to use it this time.

I don't know where the code on the server goes when I write a long story.

Please teach me.

django python web

2022-09-21 19:18

1 Answers

Can I take it as meaning that there was no view on the server I made before?

Although it is difficult to explain Janggo in this article, if you briefly explain the bulletin board as an example

When I get a request for a list of posts, (1) The first response is made at a place called views.py. And how we respond is implemented here.I have to read the list of articles, and then I'll have to search the DB. (2) How to work with DB is implemented at models.py. What values are read (e.g., title of writing, date of writing, author) and what is the relationship between data (e.g., relationship between writer and writer) are implemented (3) Take the data from the DB and spray the screen (HTML). It is a process of drawing a screen by putting data in a place called template.

I think it's better to learn the basics of the janggu first. Learn long and abundant(paid) or Short and light(free)There are lectures available.


2022-09-21 19:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.