How to edit an already existing user?
alejandroandreu opened this issue · comments
Alejandro Andreu commented
Hi,
I'm using this skeleton for a project of mine and wanted to display a form so the user can edit its attributes (email address, display name, etc.). How can one achieve this using this template? I can display all of a user's attributes in the form and re-submit them, but how to make the actual update of the user?
Michael Herman commented
You'll have to set up a new request handler in https://github.com/realpython/cookiecutter-flask-skeleton/blob/master/%7B%7Bcookiecutter.app_slug%7D%7D/project/server/user/views.py.
Alejandro Andreu commented
Ok thanks. I guess that together with some calls to the SQLAlchemy API should do the trick.