HelioHost Posted March 1, 2019 Posted March 1, 2019 Username: esceeles, Server: Ricky, Main domain: crosswordsolver.heliohost.org Hello, I have the home page of my flask app running, however when I try toaccess any other pages under different routes, for example:app.route('/output/'), either just through typing it into the url or byclicking an href button on a different page, I get a 404 not found. Arethere some weird routing conventions on heliohost that I need to considerwhen writing these routes? Thanks,Ellie
HelioHost Posted March 1, 2019 Author Posted March 1, 2019 In myapp.py I have a function: output(): that is wrapped in the route:app.route('/output'). Being that it appears I have to access my main page(wrapped in: app.route('/')) through crosswordsolver.heliohost.org/flask,I'm assuming I should be able to access this function through "crosswordsolver.heliohost.org/flask/output/" , but when I try to accessthis page it says the URL isn't found on the server.Thanks, On Fri, Mar 1, 2019 at 6:17 AM Heliohost Support wrote: > What is the url to the script that isn't working?>> You may view the status of your ticket by visiting:>> https://www.helionet.org/index/index.php?showtopic5258>> Thank you,> Heliohost support> https://www.heliohost.org/> https://www.helionet.org/>>
Krydos Posted March 1, 2019 Posted March 1, 2019 @app.route('/ouput/', methods = ['POST', 'GET']) Looks like you're missing a t.
HelioHost Posted March 1, 2019 Author Posted March 1, 2019 Thank you for all your help. I'm having one last problem. In main.py, atthe top, when I put a line: "import textdictionary", without doing evenanything else with it, I get ERR_EMPTY response upon trying to open up myhome page. textdictionary.py is in the public_html/flask file, wheremain.py is located. Is there any reason why importing this would cause theprogram to crash?Best, On Fri, Mar 1, 2019 at 7:04 AM Heliohost Support wrote: > @app.route('/ouput/', methods = ['POST', 'GET'])Looks like you're missing> a t.>> You may view the status of your ticket by visiting:>> https://www.helionet.org/index/index.php?showtopic5258>> Thank you,> Heliohost support> https://www.heliohost.org/> https://www.helionet.org/>>
Krydos Posted March 1, 2019 Posted March 1, 2019 Textdictionary.py is massive. 16 MB text files take a long time to load. It's likely your script is timing out. I'm not sure what you're trying to do, but it might be better to store your textdictionary in a database and query it that way.
Recommended Posts