Closed elyasaf-boim closed 6 years ago
instructions:
change any href/src in the html page to function url_for:
-----------------------chnage to ----------------->
if we need a link between 2 pages: href = Simulation. html -------------chnage to ---------------> href="url_for('route_simulation')" were 'route_simulation' is a function in main.py that return the Simulation.html page
'static' - this is directory that contain enything that html files needs
Give a name to every input field ----> <input type="email" name="email" value={{ email }} required>
the 'required' keyword make this field to be required and this part 'value={{ email }}' give a default value to this field the 'email' is sent from the backend (specific in main.py in login_user method)
esstimate time: 2 hours actual: 4
start to connect everything with flask.
only 2 pages - login & register