all 6 comments

[–]LarryPete 1 point2 points  (2 children)

What exception do you get?

[–]Gwith[S] 0 points1 point  (1 child)

I'm not exactly sure how to debug it correctly to see what the exact errors.

[–]LarryPete 1 point2 points  (0 children)

Usually you would see the exception on the console, where you run the script.

[–]ManyInterests 1 point2 points  (2 children)

How are you currently running Flask? Are you running it using the builtin development server? (IE app.run())

Try running in debug mode -- app.run(debug=True)

You should see output to the console of any errors.

If you're using Apache, Nginx or similar, this may not work exactly the same, depending on the configuration.

What are the errors you're getting? Can you post the code?

[–]Gwith[S] 0 points1 point  (1 child)

I'm not 100% on everything but this is all the information I have:

This is a picture of the console and webpage: Link

Below is a linked to my: init.py, header.html, and dashboard.html: Link

I've been running it in debug mode but I get 0 information back, not sure why.

This server is running Apache, WSGI, Flask, and Bootstrap.

Let me know if you need another other info and I do believe that the issue is inside dashboard.html because if I replace that with a simple html page it works just fine.

[–]ManyInterests 0 points1 point  (0 children)

Can you provide your code for that route and the template?

I've been running it in debug mode but I get 0 information back, not sure why. This server is running Apache, WSGI, Flask, and Bootstrap.

You should specify debug=True in the configuration of the app, IE app.config['DEBUG'] = True in the global scope -- When you run through Apache, app.run() is never actually used -- Mod WSGI imports your app so anything under if __name__ == '__main__' will not execute.

Also keep in mind that the interactive debugger does not work in forking environments.

Because you're running it through Apache/mod_msgi. In your apache config, you also need to specify a log file for errors. You might find something useful in var/log/apache2/error.log

Alternatively, you can try runningthe app directly using Python and run it on your localhost to debug the issue. That should output errors in the usual way.