dudel icon indicating copy to clipboard operation
dudel copied to clipboard

dudel.wsgi: correctly find real path of the rest of the code

Open dario23 opened this issue 7 years ago • 0 comments

previously, the abspath() of server.wsgi was added to the python import path. abspath() however only cleans up the given path string, with no filesystem interaction like resolving symlinks etc.

some webservers (like apache2) require .wsgi files to be in an accessible location (like webroot), where for security you might not want to put your whole code, thus encouraging the use of symlinks.

dario23 avatar Apr 21 '17 16:04 dario23