0

for some reason my code will work separately but with out using python flask but when I use flaks I get this error "Failed to load resource: the server responded with a status of 404 (NOT FOUND)"

html code:

<!DOCTYPE html>
<html lang="en">
<head>
  <style>
      body{
      background-image: url('website_background.jpg');
      }

  </style>
</head>
<body>

</body>
</html>

python flask code:

from flask import render_template, Blueprint
from flask_login import login_required, current_user
home = Blueprint('home', __name__)

@home.route('/', methods=['POST', 'GET'])
def home_page():
    return render_template('home_page.html')

main python file:

from website import create_app

app = create_app()
if __name__ == '__main__':
    app.run(debug=True)
zack
  • 31
  • 4

0 Answers0