Hey there,
I've been working on a website using Python and Flask, and it's been going well so far. But now I've encountered a problem when trying to implement a login feature for the site.
I have set up logic to authenticate users and redirect them to the dashboard upon successful login, but for some reason, it's not working as expected during testing.
I've also added some styles in a style.css file, but I'm wondering if there's a better way to incorporate Bootstrap for a more streamlined design. Any tips on integrating the existing styles with Bootstrap would be greatly appreciated.
Additionally, I've been trying to use flash messaging to display test user credentials, but haven't had any luck getting it to work.
If anyone has any insights or suggestions, please feel free to share.
Login.html
<link rel="stylesheet" href="/static/css/style.css" type="text/css">
{% block body %}
{% if session['logged_in'] %}
<p>You're logged in already!</p>
{% else %}
... (Code continues)
__init__.py
(Python code snippet)
style.css
* {
box-sizing: border-box;
}
... (CSS code continues)