Django Development Questions

Asked 2 years ago, Updated 2 years ago, 49 views

I have no idea what to do during the development of the website, so I'm asking you a question. The function of the website I'm currently creating is a bulletin board function, and I have to divide the bulletin board into several url. When you sign up, you should receive your ID, password, and school information and log in to a specific page for the school, but you have completed the login function, but I don't know how to save the school information with the account information and how to take it out when you check if it matches the login. Please help me

django python

2022-09-22 11:01

1 Answers

You put django on the tag, but this problem has nothing to do with django, and it actually goes up to the level of Service Design (Architecture). Are you processing receiving school information when you sign up as a simple string input such as "Ongok Elementary School"? Then that's a big deal.

Typically, you do the following:

The explanation is a bit lengthy, but the above scenario is at least presented. Real world scenarios are much more complex. (What if there could be multiple bulletin boards in one school? What if a member wants to use the bulletin board for both elementary, middle, high, and university? What if you transferred? How do I make certain articles on certain boards readable by outsiders? To specify the operator of a specific school bulletin board?)

There's a lot to think about, but first of all, learn about DB's relationship and think about how to apply it to the django application you're currently developing. You can do it.


2022-09-22 11:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.