L
L
Li_Von2017-08-28 12:25:44
Python
Li_Von, 2017-08-28 12:25:44

How to register correctly?

Hello.
I came up with a project, I'm doing it, I've already laid out almost all the pages, but the project has user registration and a "personal account".
So, in the trailer, I will read how to work with databases and send requests, because I don’t know this yet. But how to implement a personal account?
Make one page and for each user just change its content, taking the data from the database.
Or is it better to create a page for each user? As in Vk. And how then to automate the creation of the page?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxfox, 2017-08-28
@Li_Von

You should use some framework (in Python, this is, for example, Django or Flask), and its documentation says how to implement registration, authentication and authorization.
Architecturally - we create an entry for the user in the database and store the data associated with this user in the database. On request - we take data from the database, substitute it into the template, give it to the client.
If you have a SPA, then everything is generally similar, just templating occurs at the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question