Closed louking closed 3 years ago
This was may have always been like this. I'm running into https://code.luasoftware.com/tutorials/flask/things-you-should-know-about-flask-server-name/
We have SERVER_NAME set to scoretility.com
Alternately, see if there's any way to fix the following
Traceback (most recent call last):
File "/etc/mod_wsgi-express/scoretility.com/handler.wsgi", line 95, in <module>
recorder_directory=recorder_directory)
File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/mod_wsgi/server/__init__.py", line 1471, in __init__
exec(code, self.module.__dict__)
File "/var/www/scoretility.com/rrwebapp/rrwebapp.wsgi", line 41, in <module>
application = create_app(Production(configfiles), configfiles)
File "/var/www/scoretility.com/rrwebapp/rrwebapp/__init__.py", line 184, in create_app
redirect_to=url_for('static', filename='favicon.ico'))
File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/helpers.py", line 333, in url_for
"Application was not able to create a URL adapter for request"
RuntimeError: Application was not able to create a URL adapter for request independent URL generation. You might be able to fix this by setting the SERVER_NAME config variable.
From Mike:
Right now, I see this works: https://scoretility.com/viewstandings/?club=fsrcrt&series=All+Races&desc=FSRC+Racing+Team+-+2021+All+Races&year=2021
But this doesn't: https://www.scoretility.com/viewstandings/?club=fsrcrt&series=All+Races&desc=FSRC+Racing+Team+-+2021+All+Races&year=2021 It gets : Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.